demo.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /**{margin: 0;padding: 0;list-style: none;}
  2. KISSY CSS Reset
  3. 理念:1. reset 的目的不是清除浏览器的默认样式,这仅是部分工作。清除和重置是紧密不可分的。
  4. 2. reset 的目的不是让默认样式在所有浏览器下一致,而是减少默认样式有可能带来的问题。
  5. 3. reset 期望提供一套普适通用的基础样式。但没有银弹,推荐根据具体需求,裁剪和修改后再使用。
  6. 特色:1. 适应中文;2. 基于最新主流浏览器。
  7. 维护:玉伯<lifesinger@gmail.com>, 正淳<ragecarrier@gmail.com>
  8. */
  9. /** 清除内外边距 **/
  10. body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
  11. dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
  12. pre, /* text formatting elements 文本格式元素 */
  13. form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
  14. th, td /* table elements 表格元素 */ {
  15. /*margin: 0;
  16. padding: 0;*/
  17. }
  18. /** 设置默认字体 **/
  19. body,
  20. button, input, select, textarea /* for ie */ {
  21. /*font: 12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;*/
  22. }
  23. h1, h2, h3, h4, h5, h6 { font-size: 100%; }
  24. address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
  25. code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */
  26. small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
  27. /** 重置列表元素 **/
  28. ul, ol { list-style: none; }
  29. /** 重置文本格式元素 **/
  30. a { text-decoration: none; }
  31. a:hover { text-decoration: underline; }
  32. /** 重置表单元素 **/
  33. legend { color: #000; } /* for ie6 */
  34. fieldset, img { border: 0; } /* img 搭车:让链接里的 img 无边框 */
  35. button, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
  36. /* 注:optgroup 无法扶正 */
  37. /** 重置表格元素 **/
  38. table { border-collapse: collapse; border-spacing: 0; }
  39. /* 清除浮动 */
  40. .ks-clear:after, .clear:after {
  41. content: '\20';
  42. display: block;
  43. height: 0;
  44. clear: both;
  45. }
  46. .ks-clear, .clear {
  47. *zoom: 1;
  48. }
  49. .main {padding: 30px 100px;}
  50. .main h1{font-size:36px; color:#333; text-align:left;margin-bottom:30px; border-bottom: 1px solid #eee;}
  51. .helps{margin-top:40px;}
  52. .helps pre{
  53. padding:20px;
  54. margin:10px 0;
  55. border:solid 1px #e7e1cd;
  56. background-color: #fffdef;
  57. overflow: auto;
  58. }
  59. .icon_lists li{
  60. float:left;
  61. width: 100px;
  62. height:150px;
  63. text-align: center;
  64. }
  65. .icon_lists .icon{
  66. font-size: 42px;
  67. line-height: 100px;
  68. margin: 10px 0;
  69. color:#333;
  70. -webkit-transition: font-size 0.25s ease-out 0s;
  71. -moz-transition: font-size 0.25s ease-out 0s;
  72. transition: font-size 0.25s ease-out 0s;
  73. }
  74. .icon_lists .icon:hover{
  75. font-size: 100px;
  76. }