Blogger Information
Blog 48
fans 3
comment 1
visits 37327
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
首页排版练习0326
JackBlog
Original
622 people have browsed it

实例

<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<title>Document</title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.top{
			height: 20px;
			background-color:black;
			color: white;
		}
		
		.header{
			height: 100px;
			background-color: #F0FFFF;
		}
		.banner{
			height: 300px;
			background-color: aliceblue;
		}
		.main{
			width: 1200px;
			margin: 0 auto;
		}
		.main .left{
			width: 400px;
			height: 600px;
			background-color: antiquewhite;
			float: left;
		}
		.main .right{
			width: 800px;
			height: 600px;
			background-color: aquamarine;
			float: right;
		}
		.main:after{
			content: "";
			display: block;
			clear: both;
		}
		
		.main1{
			width: 1200px;
			margin: 0 auto;
			margin-top: 2px;
		}
		.main1 .left{
			width: 200px;
			height: 600px;
			background-color: #FF0000;
			float: left;
		}
		.main1 .middle{
			height: 600px;
			background-color: blue;
			padding-left: 200px;
			padding-right: 200px;
			
		}
		.main1 .right{
			width: 200px;
			height: 600px;
			background-color: crimson;
			float: right;
		}
		.main1:after{
			content: "";
			display: block;
			clear: both;
		}
		
		.footer{
			height: 100px;
			background-color: #000000;
		}
		.location{
			width: 1200px;
			margin: 0 auto;
		}
		
		
		
	</style>
</head>
<body>
	<div class="top"><div class="location">顶部</div></div>
	
	<div class="header"><div class="location">头部
		<div class="logo"></div>
		<div class="dh"></div></div>
	</div>
	
	<div class="banner">轮播图</div>
	
	<div class="main">
		<div class="right">右侧</div>
		<div class="left">左侧</div>
	</div>
		<div class="main1">
		<div class="right">右侧</div>
		
		<div class="left">左侧</div>
		<div class="middle">中侧</div>
	</div>
	
	<div class="footer"><div class="location">底部</div></div>
</body>
</html>

运行实例 »

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


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