css网页设计(网页页面1-3-1)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>页面设计</title>
<style type="text/css">
#header,#content,#footer{
 background-color:#C90;
 height:50px;
 width:100%;
}
#content{
 height:500px;
}
#left{
 width:30%;
 height:500px;
 float:left;
 background-color:#C00;
}
#center{
 float:left;
 width:50%;
 height:500px;
 background-color:#C0C;
}
#right{
 width:20%;
 height:500px;
 float:right;
 background-color:#66F;
}

</style>
</head>

<body>
<div id="header"></div>
<div id="content">
<div id="left"></div>
<div id="center"></div>
<div id="right"></div>
</div>
<div id="footer"></div>
</body>
</html>

posted @ 2011-11-04 13:25  威德尔海豹  阅读(209)  评论(0)    收藏  举报