div+css网站布局

来源:百度知道 编辑:UC知道 时间:2024/05/16 15:50:56
如何实现一行多列?

一行两列(一行多列就用一行两列进行嵌套):

<div style="width:300px">
<div style="float:left;margin:0px;border:1px solid #000;width:100px;height:25px;">
我在左边
</div>
<div style="float:right;margin:0px;border:1px solid #000;width:100px;height:25px;">
你在右边
</div>
</div>