我刚学DIV布局,如题, float:只有左和右属性, 不会是用这个实现一行三列的布局吧? |
#ma{ width:790px; }
#left{ width:240px; background-color:#FF0000; float:left;}
#center{ width:300px; background-color:#ffff00; float:left;}
#right{ width:250px; background-color:#000000; float:left;}
</style>
<body>
<div id="ma">
<div id="left">a</div>
<div id="center">b</div>
<div id="right">c</div>
</div>
</body>