<body>
<div style="background-color: orangewidth: 100%height: 20%">
</div>
<div style="background-color: greenwidth: 100%height: 60%">
</div>
<div style="background-color: bluewidth: 100%height: 20%">
</div>
</body>
</html>
<DOCTYPE HTML><html>
<head>
<title>一个简单的table</title>
</head>
<body>
<table>
<tr><td style="bgcolor:grayheight:50pxwidth:30%">灰</td>
<td style="bgcolor:redheight:50pxwidth:30%">红</td>
<td style="bgcolor:grayheight:50pxwidth:30%">灰</td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
</table>
</body>
<!DOCTYPE html><html>
<head>
<title></title>
<style type="text/css">
#red{
float: left
width:200px
height:200px
background: red
}
#blue{
float: left
width:200px
height:200px
background: blue
}
#green{
float: left
width:200px
height:200px
background: green
}
</style>
</head>
<body>
<div id="red"></div>
<div id="blue"></div>
<div id="green"></div>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)