Blogger Information
Blog 10
fans 0
comment 1
visits 6206
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
3月27
不忘初心
Original
971 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>双飞布局</title>
	<style type="text/css">
		.head , .foot {
			width:100%; /*设置宽度*/
			height:70px;/*设置高度*/
			background: #666;/*设置背景色*/
	}
		.foot{
			clear:both;
		}
		.wztb{
			width:100%;
			min-height:100%;/*引用父值*/
			background:pink ;
			text-align:center;/*设置内部的文本水平垂直居中*/
			line-height:60px;
		}
		/*设置网站主体的样式*/
		.zhuti{
			width:100%;
			margin:auto;/*设置主体内部所有区块水平居中*/
			overflow:hidden;/*当前区块能够包住内部的浮动区块*/
			background:green;

		}
		.main{
			width:100%;
			background:lightblue;
			float:left;
		}
		.wzzhuti{
			min-height:600px;
			margin: 0 200px;
			background-color: green;
		}
		.left {
			width: 200px;
			min-height:600px;
			float:left;
			margin-left:-100%;
			background-color: red;
	   }
		.right {
			width: 200px;
			min-height:600px;
			float:left;
			margin-left:-200px;
			background-color: yellow;
	}

</style>
</head>
<body>
	<div class="head">
		<div class="wztb">网站头部</div>
	</div> <!--头部结构-->
	<div class="zhuti">
	<div class="main">
		<div class="wzzhuti">网站主体</div>
		<div class="left">左侧</div>
		<div class="right">右侧</div>
	</div>
	</div>
	<div class="foot">
		<div class="wzdibu">网站底部</div>
	</div>


</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例

微信图片_20180329154214.jpg微信图片_20180329154249.jpg

Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post