CSS reset & 闭合div 适用于HTML5
2014-03-12 22:03
323 查看
@charset "UTF-8"; html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video,input,textarea{ margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; /* 容易引起table 单元格垂直对齐问题*/ } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } .clearfix:after{ content:"."; display:block; height:0; line-height:0; clear:both; visibility:hidden; } .clearfix{display:inline-block;} /* Hide from IE Mac */ .clearfix{display:block;} /* End hide from IE Mac */ /* end of clearfix */
相关文章推荐
- Html-DW(2)div & css 简单的三栏页面
- Html-DW(4)div & css 设计head底部横条内容
- HTML&CSS基础学习笔记1.20-DIV标签2
- HTML && CSS 学习笔记(5)div、class(关键词:html/div/class)
- HTML&CSS&DIV
- HTML[CSS+DIV] 网站布局练习 Zun'Showing
- HTML&CSS基础学习笔记1.19-DIV标签1
- HTML<css+div> 基础学习
- HTML+CSS 滚动条样式自定义 - 适用于 div,iframe, html 等
- <div>标签(css与html写在一起 style type=“text/css”)
- HTML&CSS&DIV基础<2>
- HTML/CSS控制div垂直&&水平居中屏幕
- HTML&CSS基础篇之十三:div&span
- Html-DW(3)div & css 设计head
- Html-DW(1)链接CSS & div基础
- HTML&CSS——使用DIV和CSS完成网站首页重构
- HTML&CSS实验(6)
- html+div+css+jquery+javascript的关系
- 【慕课网】HTML&CSS基础课程学习笔记
- [Codecademy] HTML&CSS 第二课:Build Your Own Webpage