我剛學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>