css默认初始化(模仿京东,没用的我都去除了)
* { margin: 0; padding: 0; } /** 斜体文字不倾斜 */ em, i { font-style: normal; } /** 无序列表去掉· */ li { list-style: none; } /** 图片和文字垂直居中,并且边框为0 */ img { border: 0; vertical-align: middle; } /** 按钮鼠标经过变成小手 */ button { cursor: pointer; } /** 超链文字灰色 */ a { color: #666; text-decoration: none; } a:hover { } /** 输入框字体 */ button, input { font-family: Microsoft YaHei; } body { -webkit-font-smoothing: antialiased; /* 文字抗锯齿 */ background-color: #fff; font: 12px/1.5 Microsoft YaHei; } .none .hide { display: none; } .clearfix:before, .clearfix:after { content: ""; display: table; } .clearfix:after { clear: both; } .clearfix { *zoom: 1; }