IM12345_Web demo - 代码源于 商丘市12345项目

reset.css 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* 清除内外边距 */
  2. body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
  3. dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
  4. pre, /* text formatting elements 文本格式元素 */
  5. fieldset, lengend, button, input, textarea, /* form elements 表单元素 */
  6. th, td { /* table elements 表格元素 */
  7. margin: 0;
  8. padding: 0;
  9. }
  10. /* 设置默认字体 */
  11. body,
  12. button, input, select, textarea { /* for ie */
  13. /*font: 12px/1 Tahoma, Helvetica, Arial, "宋体", sans-serif;*/
  14. font: 12px/1 Tahoma, Helvetica, Arial, "\5b8b\4f53", sans-serif; /* 用 ascii 字符表示,使得在任何编码下都无问题 */
  15. }
  16. h1 { font-size: 18px; /* 18px / 12px = 1.5 */ }
  17. h2 { font-size: 16px; }
  18. h3 { font-size: 14px; }
  19. h4, h5, h6 { font-size: 100%; }
  20. address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
  21. code, kbd, pre, samp, tt { font-family: "Courier New", Courier, monospace; } /* 统一等宽字体 */
  22. small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
  23. /* 重置列表元素 */
  24. ul, ol { list-style: none; }
  25. /* 重置文本格式元素 */
  26. a { text-decoration: none; }
  27. a:hover { text-decoration: underline; }
  28. abbr[title], acronym[title] { /* 注:1.ie6 不支持 abbr; 2.这里用了属性选择符,ie6 下无效果 */
  29. border-bottom: 1px dotted;
  30. cursor: help;
  31. }
  32. q:before, q:after { content: ''; }
  33. /* 重置表单元素 */
  34. legend { color: #000; } /* for ie6 */
  35. fieldset, img { border: none; } /* img 搭车:让链接里的 img 无边框 */
  36. /* 注:optgroup 无法扶正 */
  37. button, input, select, textarea {
  38. font-size: 100%; /* 使得表单元素在 ie 下能继承字体大小 */
  39. }
  40. /* 重置表格元素 */
  41. table {
  42. border-collapse: collapse;
  43. border-spacing: 0;
  44. }
  45. /* 重置 hr */
  46. hr {
  47. border: none;
  48. height: 1px;
  49. }