Blogger Information
Blog 48
fans 2
comment 3
visits 37893
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
3月23日作业
黑猫警长的博客
Original
555 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		
		.box1{
			width: 200px;
			height: 200px;
			background: #09f;
			text-align: center;
		}
		.box1 a{
			line-height: 200px;
		}
		.box2{
			width: 200px;
			height: 200px;
			background: #09f;
			text-align: center;
			display: table-cell;
			vertical-align: middle;
		}

	</style>
</head>
<body>
	<div class="box">
		<header></header>
		<div class="main">
			<h3>1垂直居中</h3>
			<div class="box1">
				<a href="">垂直居中</a>
			</div>

			<h3>2垂直居中</h3>
			<div class="box2">
				<p>垂直居中</p>
				<p>垂直居中</p>
			</div>

		</div>
		<footer></footer>
	</div>
</body>
</html>

运行实例 »

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

手抄代码

QQ图片20180326195206.jpg

QQ图片20180326195210.jpg

Correction status:qualified

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