Blogger Information
Blog 27
fans 0
comment 0
visits 43256
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
盒模型的内容,内外边距与边框的基本语法_20180819_1417
xingzhi的博客
Original
628 people have browsed it

盒模型的内容,内外边距与边框的基本语法使用

实例

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>盒模型的内容,内外边距与边框的基本语法</title>
</head>
<style>
	*{
		margin: 0;padding: 0;
	}
	.box1{
		width: 300px;
		background: #bfbcb9;
		padding: 50px 100px;
		margin: 50px auto;
	}
	.box1 a{
	    line-height: 100px;
	    display: block;
	    background: #6a6a6a;
	    text-align: center;
	    border: 22px solid #949494;

	}
</style>
<body>
	<div class="box1">
		<a href="">内容</a>
	</div>
</body>
</html>

运行实例 »

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


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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!