例1:
<div style="width:100px; height:50px;">
<div style="float:left; width:50px; height:50px; background-color:blue"></div>
<div style="float:left; width:50px; height:50px; background-color:red"></div>
</div>
例2:
<div style="width:100px; height:50px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<div style="width:50px; height:50px; background-color:blue"></div>
</td>
<td>
<div style="width:50px; height:50px; background-color:red"></div>
</td>
</tr>
</table>
</div>
例3:
<div style="width:100px; height:50px;">
<div style=" float:left;width:50px; height:50px; background-color:blue"></div>
<div style="height:50px; background-color:red; overflow:hidden;"></div>
</div>