1.HTML5编写的CSS Reset
CSS Reset也可以写成Reset CSS,即重设浏览器样式。

  1. /* html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)v1.4 2009-07-27 | Authors: Eric Meyer & Richard Clarkhtml5doctor.com/html-5-reset-stylesheet/*/
  2. html, body, div, span, object, iframe,
  3. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  4. abbr, address, cite, code,
  5. del, dfn, em, img, ins, kbd, q, samp,
  6. small, strong, sub, sup, var,
  7. b, i,
  8. dl, dt, dd, ol, ul, li,
  9. fieldset, form, label, legend,
  10. table, caption, tbody, tfoot, thead, tr, th, td,
  11. article, aside, figure, footer, header, hgroup, menu, nav, section, menu,
  12. time, mark, audio, video {
  13. margin:0;
  14. padding:0;
  15. border:0;
  16. outline:0;
  17. font-size:100%;
  18. vertical-align:baseline;
  19. background:transparent;
  20. }
  21. article, aside, figure, footer, header,
  22. hgroup, nav, section { display:block; }
  23. nav ul { list-style:none; }
  24. blockquote, q { quotes:none; }
  25. blockquote:before, blockquote:after,
  26. q:before, q:after { content:''; content:none; }
  27. a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
  28. ins { color:#000; text-decoration:none; }
  29. mark { color:#000; font-style:italic; font-weight:bold; }
  30. del { text-decoration: line-through; }
  31. abbr[title], dfn[title] { border-bottom:1px dotted #000; cursor:help; }
  32. /* tables still need cellspacing="0" in the markup */
  33. table { border-collapse:collapse; border-spacing:0; }
  34. hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
  35. input, select { vertical-align:middle; }
  36. /* END RESET CSS */

更多相关文章

  1. 工作中遇到的几个CSS样式表的问题
  2. php 把驼峰样式的字符串转换成下划线样式的字符串
  3. 来自php表单的样式电子邮件
  4. 当页面上有多个按钮时,按钮样式在页面加载上有厚的边框
  5. 为什么通过JavaScript更改样式会受到CSS过渡的影响
  6. 如何在execCommand formatBlock 'p'标签中添加类或id或CSS样式?
  7. arcgis api for js入门开发系列十 自定义Navigation控件样式风格
  8. Javascript没有返回样式属性[重复]
  9. Vue绑定内联样式问题

随机推荐

  1. 熔断器 Hystrix 源码解析 —— 命令执行(
  2. 数据库分库分表中间件 Sharding-JDBC 源
  3. 【招聘】杭州阿里招高级前端
  4. 【招聘】上海携程门票业务招中高级前端
  5. 分布式消息队列 RocketMQ 源码分析 ——
  6. 熔断器 Hystrix 源码解析 —— 执行结果
  7. 【第557期】搭建前端私有npm杂记
  8. 【第764期】你不懂JS:this是什么?
  9. 熔断器 Hystrix 源码解析 —— 调试环境
  10. 熔断器 Hystrix 源码解析 —— 命令执行(