我在正文中有一个内容 div,在该 div 中我需要三个水平 div,一个接一个。我尝试使用 float: left, float right 和 fixed widths 但它不起作用。 我该怎么做?
最佳答案
float:left
应该可以正常工作。这是一个demo
<style type="text/css">
#box {float:left;border:1px solid}
</style>
<div id="container">
<div id="box">This is box 1.</div>
<div id="box">This is box 2.</div>
<div id="box">This is box 3.</div>
</div>
关于css - div next 另一个问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3959415/