好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

html5教程-HTML5 css reset

小宝典致力于为广大程序猿(媛)提供高品质的代码服务,请大家多多光顾小站,小宝典在此谢过。

&nbs p;

我个人是比较讨厌这类冗余的 CSS reset(参见我“CSS reset的重新审视 – 避免样式重置”),绝大多数是浪费代码,浪费性能。我个人建议是找到其中自己需要的,不要全盘照搬。

/*  ht ML 5doctor .COM  Reset Stylesheet v1.4.1  2010-03-01 Author: Richard Clark - http://richclar KDE sign.com */  html, body, div, span, object, ifr am e,  h1 , h2, h3, h4, h5, h6, p,  blockquote ,  PR e, ab br , address, c IT e, code, del,  DF n, em,  img , ins, kbd, q, samp, small,  strong , s ub , sup,  VAR , b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, det ai ls, figcaption, figure,  footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {     m arg in:0;     padding:0;     border:0;     outline:0;     font- Size: 100%;     vert ical -align:baseline;     background:transparent; }  body {     line-h ei ght:1; }  :focus {  outline: 1; }  article,aside,canvas,details,figcaption,figure, footer,header,hgroup,menu,nav,section,summary {      dis play :block; }  nav ul {     list -s tyle:none; }  blockquote, q {     quotes:none; }  blockquote:before, blockquote :after , q:before, q:after {     content:'';     content:none; }  a {     mar gin :0;     padding:0;     border:0;     font-size:100%;     vertical-align:baseline;     background:transparent; }  ins {     background-color: # ff9;     color:#000;     text-decoration:none; }  mark {     background-color:#ff9;     color:#000;      font-style:italic;      font-weight :bold; }  del {     text-decoration: line -t  hr ough; }  abbr[title], dfn[title] {     border-bottom:1px dotted #000;     cursor:help; }  table {     border-collapse:collapse;     border-spacing:0; }  hr {     display:block;     height:1px;     border:0;        border-top:1px solid #cccccc;     margin:1em 0;     padding:0; }  input, select {     vertical-align:middle; }

此段包含 HTML 5的CSS reset来自:http:// html5 reset. org /

希望能需要的人提供些帮助。

(本篇完)

觉得 可用,就经常来吧! 欢迎评论哦!  html5教程 ,巧夺天工,精雕玉琢。小宝典献丑了!

总结

以上是 为你收集整理的 html5教程-HTML5 css reset 全部内容,希望文章能够帮你解决 html5教程-HTML5 css reset 所遇到的问题。

如果觉得 网站内容还不错, 推荐好友。

查看更多关于html5教程-HTML5 css reset的详细内容...

  阅读:48次