重置样式表

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了重置样式表相关的知识,希望对你有一定的参考价值。

Eric Meyer's newest version
  1. html, body, div, span, applet, object, iframe,
  2. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  3. a, abbr, acronym, address, big, cite, code,
  4. del, dfn, em, font, img, ins, kbd, q, s, samp,
  5. small, strike, strong, sub, sup, tt, var,
  6. b, u, i, center,
  7. dl, dt, dd, ol, ul, li,
  8. fieldset, form, label, legend,
  9. table, caption, tbody, tfoot, thead, tr, th, td {
  10. margin: 0;
  11. padding: 0;
  12. border: 0;
  13. outline: 0;
  14. font-size: 100%;
  15. vertical-align: baseline;
  16. background: transparent;
  17. }
  18. body {
  19. line-height: 1;
  20. }
  21. ol, ul {
  22. list-style: none;
  23. }
  24. blockquote, q {
  25. quotes: none;
  26. }
  27.  
  28. /* remember to define focus styles! */
  29. :focus {
  30. outline: 0;
  31. }
  32.  
  33. /* remember to highlight inserts somehow! */
  34. ins {
  35. text-decoration: none;
  36. }
  37. del {
  38. text-decoration: line-through;
  39. }
  40.  
  41. /* tables still need 'cellspacing="0"' in the markup */
  42. table {
  43. border-collapse: collapse;
  44. border-spacing: 0;
  45. }

以上是关于重置样式表的主要内容,如果未能解决你的问题,请参考以下文章

CSS HTML5就绪重置样式表

CSS 重置样式表

CSS CSS重置样式表

CSS HTML5样式表重置

重置样式表

CSS DzR主样式表(第一部分,重置)