我有 8 个 div,我让它们都向左浮动,因为我希望它们都在同一行并溢出它们的容器。出于某种原因,它们是成对的,我不确定为什么。这是 jsfiddle http://jsfiddle.net/wp9jB/
这是代码:
.standard_containers {
width:275px;
padding-top:15px;
padding-right:10px;
padding-left:10px;
padding-bottom:15px;
float:left;
margin-left:7px;
margin-right:7px;
}
<div style="width:690px;border:1px solid red;position:relative;">
<div class="standard_containers shadow gradient_2">
<p class="head_med_blue">Physical Thearpy Protocols</p>
</div>
<div class="standard_containers shadow gradient_2">
<p class="head_med_blue">Physical Thearpy Protocols</p>
</div>
<div class="standard_containers shadow gradient_2">
<p class="head_med_blue">Physical Thearpy Protocols</p>
</div>
<div class="standard_containers shadow gradient_2">
<p class="head_med_blue">Physical Thearpy Protocols</p>
</div>
<div class="standard_containers shadow gradient_2">
<p class="head_med_blue">Physical Thearpy Protocols</p>
</div>
<div class="standard_containers shadow gradient_2">
<p class="head_med_blue">Physical Thearpy Protocols</p>
</div>
<div class="standard_containers shadow gradient_2">
<p class="head_med_blue">Physical Thearpy Protocols</p>
</div>
<div class="standard_containers shadow gradient_2">
<p class="head_med_blue">Physical Thearpy Protocols</p>
</div>
<br style="clear:both;" />
</div>