Demo link
不知道为什么我在第二张名单上的文字没有居中。

<div id="the_target">
<ul>
<li>Stephen Marston</li>
<li>Account Exectutive</li>
<li>The Company</li>
</ul>
</div>SASS:
section {
#the_requestor {
margin-top: 40px;
ul { margin-top: 10px; }
ul li {
text-align: center;
line-height: $px20;
}
li:first-child {
font-family: LatoBold;
font-size: $px30;
background: cyan;
}
}
#the_target {
position: relative;
margin-top: 40px;
ul { margin-top: 10px; }
ul li {
text-align: center;
line-height: $px20;
}
li:first-child{
font-family: LatoBold;
font-size: $px30;
background: cyan;
}
}
}有没有想过什么会迫使斯蒂芬·马斯顿不能集中注意力?
发布于 2013-08-29 19:41:19
在#mobile-action-area中有一个元素是干扰的。你需要清除这个浮子。做这件事有很多种方法。将overflow: hidden添加到#mobile-action-area修复了它。你也可以尝试:
#mobile-action-area:after {
display: table;
content: "";
clear: both;
}发布于 2013-08-29 19:44:29
您需要在#the_target之前清除浮点数
#the_target {
position: relative;
margin-top: 40px;
clear:both;
}https://stackoverflow.com/questions/18519591
复制相似问题