CSS定意网页框架
发布网友
发布时间:2022-04-28 18:19
我来回答
共1个回答
热心网友
时间:2022-06-22 19:37
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<style>
.box
{
width:1024px;
margin:0 auto;
}
#left
{
width:30%;
float:left;
}
#right
{
width:70%;
float:right;
}
#footer
{
clear:both;
}
</style>
</head>
<body>
<div id="header" class="box"></div>
<div id="animation" class="box"></div>
<div id="mainBody" class="box">
<div id="left"></div>
<div id="right"></div>
</div>
<div id="footer" class="box"></div>
</body>
</html>