font-family: sans-serif; /* 默认字体 /
font-size: 100%; / 调整字体大小 /
-ms-text-size-adjust: 100%; / IE浏览器 /
-webkit-text-size-adjust: 100%; / FireFox浏览器 */
}
- 去除默认边距
body{
margin: 0; /* 外边距 /
padding: 0; / 内边距 /
border: 0; / 边框 */
}
- 链接相关样式
a {
text-decoration: none; /* 去除默认下划线 */
}
a:focus {
outline:thin dotted; /* 处理“outline”在Chrome浏览器中和其它浏览器之间的不一致 */
}
a:active, a:hover {
outline: 0;
}
- 排版相关样式
h1 {
/* 使h1标签在section标签和article标签的留白和字体样式统一。 */
font-size: 2em;
margin: 0.67em 0;
}
abbr[title] {
border-bottom: 1px dotted; /* 解决首字母样式在IE8/9、Safari 5和chrome浏览器中未定义的问题 */
}
b, strong {
font-weight: bold; /* 添加加粗样式*/
}
dfn {