.top{
width:100%
height:200px
background:red
}
.left,.right{
border:1px solid green
float:left
height:200px
width:50%
}
</style>
<div class="top">top</div>
<div class="left">left</div>
<div class="right">right</div>
一个div在上面。两个在下面不就行了。。
宽高背景色都可以改。
<html><body>
<table border="0" width="100%" cellpadding="10">
<tr>
<td width="50%" valign="top">
This is some text. This is some text. This is some text. This is some text. This is some
text.
</td>
<td width="50%" valign="top">
Another text. Another text. Another text. Another text. Another text. Another text. Another
text.
</td>
</tr>
</table>
<table border="0" width="100%" cellpadding="10">
<tr>
<td width="50%" valign="top">
This is some text. This is some text. This is some text. This is some text. This is some
text.
</td>
<td width="50%" valign="top">
Another text. Another text. Another text. Another text. Another text. Another text. Another
text.
</td>
</tr>
</table>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)