关于网站建设之清除浏览器默认样式

@charset "utf-8";

html{
color:#000;
background:#FFF;
}
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
form,
fieldset,
input,
textarea,
p,
blockquote,
th,
td {
margin:0;
padding:0;
}
table {
border-collapse:collapse;
border-spacing:0;
}
a {
text-decoration: none;
}
em,
strong,
b,
u,
i{
font-style:normal;
font-weight:normal;
}
ol,
ul {
list-style:none;
}
h1,
h2,
h3{
font-size:100%;
font-weight:normal;
}
input,
textarea,
select {
font-family:inherit;
font-size:inherit;
font-weight:inherit;
*font-size:100%; /*to enable resizing for IE*/
}
img {
border: 0 none;
}
input {
border: none;
}

.clearfix:after {
content: "";
height: 0;
line-height: 0;
display: block;
clear: both;
visibility: hidden;
}
.clearfix {
zoom: 1;
}

这是我目前总结的关于网站建设初始化的标签,虽说有欠缺,随着以后的学习,我会陆续的更新本文档的。也希望各位路过的大神帮助补充完善。

 

更多精彩内容,请扫面下面二维码获取更加精彩内容:

 

posted @ 2017-03-14 21:31  有深度  阅读(297)  评论(0编辑  收藏  举报