reset.css的一般写法
2017-10-31 10:51
211 查看
对于img撑父元素的高度时,会有几像素的多余高度可以通过设置vertical-align:top;其中vertical-align用于设置几个元素的垂直对齐方式,只有几个元素同时设置时才会生效。
html {
color: #000;
background: #FFF;
}
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 {
margin: 0;
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
fieldset, img {
border: 0;
}
address, caption, cite, code, dfn, em, strong, th, var {
font-style: normal;
font-weight: normal;
}
ol, ul {
list-style: none;
}
caption, th {
text-align: left;
}
h1, h2, h3, h4, h5, h6 {
font-size: 100%;
font-weight: normal;
}
q:before, q:after {
content: '';
}
abbr, acronym {
border: 0;
font-variant: normal;
}
sup {
vertical-align: text-top;
}
sub {
vertical-align: text-bottom;
}
input, textarea, select {
font-family: inherit;
font-size: inherit;
font-weight: inherit;
*font-size: 100%;
}
legend {
color: #000;
}
#yui3-css-stamp.cssreset {
display: none;
}
html {
color: #000;
background: #FFF;
}
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 {
margin: 0;
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
fieldset, img {
border: 0;
}
address, caption, cite, code, dfn, em, strong, th, var {
font-style: normal;
font-weight: normal;
}
ol, ul {
list-style: none;
}
caption, th {
text-align: left;
}
h1, h2, h3, h4, h5, h6 {
font-size: 100%;
font-weight: normal;
}
q:before, q:after {
content: '';
}
abbr, acronym {
border: 0;
font-variant: normal;
}
sup {
vertical-align: text-top;
}
sub {
vertical-align: text-bottom;
}
input, textarea, select {
font-family: inherit;
font-size: inherit;
font-weight: inherit;
*font-size: 100%;
}
legend {
color: #000;
}
#yui3-css-stamp.cssreset {
display: none;
}
相关文章推荐
- webkit内核浏览器的CSS写法
- 5种CSS_RESET借鉴
- 发一个css比较清爽的写法
- CSS里的各种水平垂直居中基础写法心得
- 爱创课堂每日一题八十六天-描述一个”reset”的CSS文件并如何使用它?
- CSS三类写法
- reset.css
- javascript下操作css的float属性的特殊写法
- CSS重置 reset.css
- CSS里的各种水平垂直居中基础写法心得
- CssReset
- 关于样式重置reset.css
- 目前比较全的CSS重设(reset)方法总结
- CSS中几种浏览器对不同版本的支持与区分写法
- css同时满足两个类名才有效果的写法
- CSS各个浏览器Hack的写法
- 目前比较全的CSS重设(reset)方法总结
- css ie6,ie7,ie8 兼容性写法,CSS hack写法
- reset.css
- css写法