﻿@charset "utf-8";

/* 防止用户自定义背景颜色对网页的影响，添加让用户可以自定义字体 */
html {
color: #333;
background: #fff;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}

/* 内外边距通常让各个浏览器样式的表现位置不同 */
body, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, group, menu, nav, section {
margin: 0;
padding: 0;
}

/* 重设 HTML5 标签, IE 需要在 js 中 createElement(TAG) */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
display: block;
}

/* HTML5 媒体文件跟 img 保持一致 */
audio, canvas, video {
display: inline-block;
*display: inline;
*zoom: 1;
}

/* 要注意表单元素并不继承父级 font 的问题 */
body, button, input, select, textarea {
font: 14px/1.5 "Hiragino Sans GB", "";
}

input, select, textarea {
font-size: 1em;
}

/* 去掉各Table cell 的边距并让其边重合 */
table {
border-collapse: collapse;
border-spacing: 0;
}

/* IE bug fixed: th 不继承 text-align*/
th {
text-align: inherit;
}

/* 去除默认边框 */
fieldset, img {
border: 0;
}

/* ie6 7 8(q) bug 显示为行内表现 */
iframe {
display: block;
}

/* 块/段落引用 */
blockquote {
margin: 1em 4em 1em 2em;
padding: 0.6em 1em;
background: #f1f1f1;
}
blockquote blockquote {
padding: 0 0 0 1em;
margin-left: 2em;
border-left: 0.4em solid #ddd;
}

/* Firefox 以外，元素没有下划线，需添加 */
acronym, abbr {
border-bottom: 1px dotted;
font-variant: normal;
}

/* 添加鼠标问号，进一步确保应用的语义是正确的（要知道，交互他们也有洁癖，如果你不去掉，那得多花点口舌） */
abbr {
cursor: help;
}

/* 一致的 del 样式 */
del {
text-decoration: line-through;
}

address, caption, cite, code, den, em, th, var {
font-style: normal;
font-weight: 500;
}

/* 去掉列表前的标识, li 会继承，大部分网站通常用列表来很多内容，所以应该当去 */
ul, ol {
list-style: none;
}

/* 对齐是排版最重要的因素, 别让什么都居中 */
caption, th {
text-align: left;
}

q:before, q:after {
content: '';
}

/* 统一上标和下标 */
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
a {color: #00B7FF;}
/* 让链接在 hover 状态下显示下划线 */
a:hover {
text-decoration: underline;
}

/* 默认不显示下划线，保持页面简洁 */
ins, a {
text-decoration: none;
}

/* 专名号：虽然 u 已经重回 html5 Draft，但在所有浏览器中都是可以使用的，
* 要做到更好，向后兼容的话，添加 class="typo-u" 来显示专名号
* 关于 <u> 标签：http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-u-element
* 被放弃的是 4，之前一直搞错 http://www.w3.org/TR/html401/appendix/changes.html#idx-deprecated
* 一篇关于 <u> 标签的很好文章：http://html5doctor.com/u-element/
*/
u, .typo-u {
text-decoration: underline;
}

/* 标记，类似于手写的荧光笔的作用 */
mark {
background: #eee;
padding:2px 5px;
color:#888;
border-radius:3px;
}

/* 代码片断 */
pre, code {
font-family: 'Courier New', Courier, "Hiragino Sans GB";
}
pre {
border: 1px solid #ddd;
border-left-width: 0.4em;
background: #fbfbfb;
padding: 10px;
}

/* 底部印刷体、版本等标记 */
small {
font-size: 12px;
color: #999;
}

/* 清理浮动 */
.clear {
clear: both;
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}

.clearfix:before, .clearfix:after {
content: "";
display: table;
}

.clearfix:after {
clear: both
}

.clearfix {
zoom: 1
}

