您的位置:首页 > 运维架构 > 网站架构

web前端开发入门之网站布局

2016-03-04 15:25 585 查看
</pre>简单的网页布局<pre name="code" class="html"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>首页布局</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="心境空明 http://blog.csdn.net/qq_22325387" />
<style>
#container{
height: 1000px;
width: 1000px;
background: grey;
}
#head{
height: 240px;
background: blue;
}
#main{
height: 480px;
background: red;
}
#lside{
height: 480px;
width: 500px;
float: left;
background: purple;
}
#rside{
height: 480px;
width: 500px;
float: right;
background: green;
}
#foot{
height: 240px;
background: yellow;
}
</style>
</head>
<body>
<div id="container">
<div id="head" ></div>
<div id="main">
<div id="lside"></div>
<div id="rside"></div>
</div>
<div id="foot"></div>
</body>
</html>
效果如图:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: