html5教程-HTML5 css reset

发布时间:2018-12-18 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了html5教程-HTML5 css reset脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
小宝典致力于为广大程序猿(媛)提供高品质的代码服务,请大家多多光顾小站,小宝典在此谢过。
 

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

/*  htML5doctor.COM Reset Stylesheet v1.4.1  2010-03-01 Author: Richard Clark - http://richclarKDEsign.com */  html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, PRe, abbr, address, cITe, code, del, DFn, em, img, ins, kbd, q, samp, small, strong, sub, 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, details, figcaption, figure,  footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {     margin:0;     padding:0;     border:0;     outline:0;     font-Size:100%;     vertical-align:baseline;     background:transparent; }  body {     line-height:1; }  :focus {  outline: 1; }  article,aside,canvas,details,figcaption,figure, footer,header,hgroup,menu,nav,section,summary {      display:block; }  nav ul {     list-style:none; }  blockquote, q {     quotes:none; }  blockquote:before, blockquote:after, q:before, q:after {     content:'';     content:none; }  a {     margin: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-through; }  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; }

此段包含HTML5的CSS reset来自:http://html5reset.org/

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

(本篇完)

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

脚本宝典总结

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

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。