asp.net div 使用

例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>
posted @ 2013-01-30 16:01  quanzhan  阅读(376)  评论(0编辑  收藏  举报