|
// 清除内外边距
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, lengend, input, textarea, // form elements 表单元素
th, td { // table elements 表格元素
margin: 0;
padding: 0;
}
// h1~h6样式重置
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
font-size: 100%;
}
// 将斜体扶正
address, cite, dfn, em, var, i, strong {
font-style: normal;
}
// 重置列表元素
ul, ol, li {
list-style: none;
}
// 重置文本格式元素
a {
text-decoration: none;
}
// img 搭车:让链接里的 img 无边框
fieldset, img {
border: none;
}
// 注:optgroup 无法扶正
button, input, select, textarea {
font: inherit;
}
// 重置表格元素
table {
border-collapse: collapse;
border-spacing: 0;
}
caption, th {
text-align: left;
}
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
// 移除如按钮点击时,周围出现的虚线
:focus {
outline: 0;
}
|