css:
<style> .column { width: 31.33%; background-color: green; float: left; margin: 0 1%; } .column:last-child { float: none; overflow: hidden; }</style>
<div class="container"> <div class="column">column 1</div> <div class="column">column 2</div> <div class="column">column 3</div> </div> <ul style="float:left"> <li>111</li> <li>111</li> </ul> <ul style="float:left"> <li>111</li> <li>222</li> </ul>
效果如图,为什么1和2的间距空出来了,2和3之间的margin会折叠?
守着星空守着你
互换的青春
相关分类