/* CSS Reset*/ body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td { margin: 0; padding: 0; } body, button, input, select, textarea { font: 14px/24px Microsoft Yahei,\5b8b\4f53, tahoma, arial, sans-serif;} h1, h2, h3, h4, h5, h6 { font-size: 14px; font-weight:normal; } address, cite, dfn, em, var { font-style: normal; } code, kbd, pre, samp { font-family: courier new, courier, monospace; } small { font-size: 12px; } ul, ol { list-style: none; } a { text-decoration: none; } a:hover { text-decoration: underline; } sup { vertical-align: text-top; } sub { vertical-align: text-bottom; } legend { color: #000; } fieldset, img { border: 0; } button, input, select, textarea { font-size: 100%; } article, aside, details, figcaption, figure, footer,header, hgroup, menu, nav, section, summary, time, mark, audio, video {display: block;margin: 0;padding: 0;} mark { background: #ff0; } .clear{clear:both;} img{ vertical-align:middle;} /*grids CSS*/ #header, #content, #footer {margin-left: auto;margin-right: auto;} /** 布局基础样式 **/ .col-main {float: left;width: 100%; /* bug fix: 主栏没有内容时,在 Firefox 和 Chrome 等浏览器下,布局不对 */ min-height: 1px; } .col-sub, .col-extra { float: left; /*position: relative; 按需设置,仅在需要时添加 */ } /** 清除浮动 **/ .clear, .layout:after, .main-wrap:after, .col-sub:after, .col-extra:after { content: '\20'; display: block; height: 0; clear: both; } .clear, .layout, .main-wrap, .col-sub, .col-extra { *zoom: 1; }