admin 发表于 2015-9-1 23:45:39

开发模板需要时需要重置的一些默认CSS样式

<font face="微软雅黑">/*网页基本样式*/
/* 清除内外边距 */
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
pre, /* text formatting elements 文本格式元素 */
fieldset, legend, button, input, textarea, /* form elements 表单元素 */
th, td/* table elements 表格元素 */{margin: 0; padding: 0;}

/* 设置默认字体 */
body,button, input, select, textarea { /* for ie */ /*font: 12px/1 Tahoma, Helvetica, Arial, "宋体", sans-serif;*/ font: 12px/1 "\5b8b\4f53", Microsoft YaHei, Tahoma, Helvetica, Arial, sans-serif; /* 用 ascii 字符表示,使得在任何编码下都无问题 */}

ul, ol { list-style: none; }/* 重置文本格式元素 */

a { text-decoration: none; }a:hover { text-decoration: underline; }

/* 重置表格元素 */table { border-collapse: collapse; border-spacing: 0;}

/* 重置 hr */hr { border: none; height: 1px;}

/* 让非ie浏览器默认也显示垂直滚动条,防止因滚动条引起的闪烁 */html { overflow-y: scroll; }

fieldset, img { border: none; }

.clear-fix{*zoom:1}
.clear-fix:before,
.clear-fix:after{display:table;content:""}
.clear-fix:after{clear:both}</font>

页: [1]
查看完整版本: 开发模板需要时需要重置的一些默认CSS样式