Reset Css By Nexiy

一直在用 Reset,以前都是拿来就用,不固定,也没有去刻意整合,最近闲下来自己收集网上常用的几个,包含 Eric Meyer’s “Reset CSS” ,Yahoo! (YUI 3) Reset CSS ,HTML5 Doctor CSS Reset ,网易 , 淘宝等网站的 Reset,自己又适当的整合了一下,去除了一些几乎用不到的,融合了这几个相互之间没有定义的在一起,于是有了自己的一套 Css Reset 。

  1. /* ------------------------------------------- 
  2.     * Reset CSS v1.0 By Nexiy
  3.     * 
  4.     * 2016-12-20
  5.     * 
  6.     ---------------------------------------------*/
  7.     body, blockquote, fieldset, textarea, button, legend, select,
  8.     input, label, table, thead, tbody, tfoot, form, img, pre,
  9.     ul, ol, li, dl, dt, dd, tr, th, td, h1, h2, h3, h4, h5, h6, p {
  10.         margin:0;
  11.         padding:0;
  12.     }
  13.     body, button, input, select, textarea {
  14.         font:14px/1.6 "\5FAE\8F6F\96C5\9ED1","\5B8B\4F53","Arial Narrow";
  15.         -webkit-text-size-adjust:100%;
  16.     }
  17.     address, cite, code, var, em, th { font-weight:normalfont-style:normal; }
  18.     input[type="text"]:focus, input[type="password"]:focus { outline:none; }
  19.     button, input, select, textarea { font-size:100%; }
  20.     h1, h2, h3, h4, h5, h6 { font-size:100%; }
  21.     select, input, img { vertical-align:middle; }
  22.     fieldset, img { border:0; }
  23.     ul, ol { list-style:none; }
  24.     li { list-style-type:none; }
  25.     table { border-collapse:collapseborder-spacing:0; }
  26.     p { word-wrap:break-word }
  27.     a { text-decoration:none; }
  28.     a:link, a:visited, a:hover, a:active, a:focus { text-decoration:none; }
  29.     /* ------------------------------------------- 
  30.     * HTML5 Display-Role Reset For Older Browsers 
  31.      --------------------------------------------*/
  32.     article, aside, details, figcaption, figure,
  33.     footer, header, hgroup, menu, nav, section {
  34.         displayblock;
  35.     }

您可以选择一种方式赞助本站

支付宝扫一扫赞助

微信钱包扫描赞助

墨丶水瓶

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: