CSS初始化
1.将页面中标签默认的样式(内外边距,文字大小,文字颜色,文字字体...)恢复到原始的状态
2.将页面中标签的样式设置为统一的样式
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
body,p,h1,h2,h3,h4,h5,h6,ul,ol,dl,dt,dd,li {
margin: 0;
padding: 0;
font-size: 16px;
font-family: "宋体";
color: red;
}
input {
border:none;
outline-style: none;
padding: 0;
}
.w {
width: 980px;
margin: 0 auto;
}
.clearfix:after {
content: "";
height: 0px;
line-height: 0px;
display: block;
clear: both;
visibility: hidden;
}
.clearfix {
*zoom: 1;
}
</style>
</head>
<body>
<p>空白格</p>
<h1>其实都没有</h1>
<ul>
<li>
杨宗纬
</li>
</ul>
<input type="text">
</body>
</html>
overflow属性详解
overflow: visible;
overflow: hidden;
overflow: scroll;
overflow: auto;