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