CSS Reset
2016-04-02 17:11
721 查看
适合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 }
相关文章推荐
- css-水平和垂直布局
- CSS--选择器
- ife-task2:零基础HTML及CSS编码--被忽略的属性
- css如何使背景图片水平居中
- 牛逼的css3:动态过渡与图形变换
- CSS3秘笈复习:第一章&第二章&第三章
- CSS:Transform和Transition
- 妙味课堂——HTML+CSS(第一课)
- CSS3 :nth-of-type() 选择器
- css3 media响应式媒体查询器用法总结
- Atitit OOCSS vs bem
- Atitit OOCSS vs bem
- Atitit OOCSS vs bem
- Atitit.css 规范 bem 项目中 CSS 的组织和管理
- Atitit.css 规范 bem 项目中 CSS 的组织和管理
- Atitit.css 规范 bem 项目中 CSS 的组织和管理
- css3入门笔记
- css position
- :css教程:css盒子模型及布局应用
- web前端初学者必学的css样式