您的位置:首页 > Web前端 > CSS

CSS Reset

2016-04-02 17:11 681 查看
适合PC端的 CSS Reset

@charset "utf-8";html {
background: white;
color: black
}

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
margin: 0;
padding: 0
}

body,button,input,select,textarea {
font: 12px \5b8b\4f53,arial,sans-serif
}

input,select,textarea {
font-size: 100%
}

table {
border-collapse: collapse;
border-spacing: 0
}

th {
text-align: inherit
}

fieldset,img {
border: 0
}

iframe {
display: block
}

abbr,acronym {
border: 0;
font-variant: normal
}

del {
text-decoration: line-through
}

address,caption,cite,code,dfn,em,th,var {
font-style: normal;
font-weight: 500
}

ol,ul {
list-style: none
}

caption,th {
text-align: left
}

h1,h2,h3,h4,h5,h6 {
font-size: 100%;
font-weight: 500
}

q:before,q:after {
content: ''
}

sub,sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline
}

sup {
top: -0.5em
}

sub {
bottom: -0.25em
}

a:hover {
text-decoration: underline
}

ins,a {
text-decoration: none
}

a:focus,*:focus {
outline: 0
}

.clearfix:before,.clearfix:after {
content: "";
display: table
}

.clearfix:after {
clear: both;
overflow: hidden
}

.clearfix {
zoom:1}

.clear {
clear: both;
display: block;
font-size: 0;
height: 0;
line-height: 0;
overflow: hidden
}

.hide {
display: none
}

.block {
display: block
}

.fl,.fr {
display: inline
}

.fl {
float: left
}

.fr {
float: right
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: