Skip to content

Instantly share code, notes, and snippets.

@yedanbo
Last active Mar 4, 2016
Embed
What would you like to do?
重置浏览器元素的一些默认属性样式(CSS)
/* RESET STYLE */
/** 清除内外边距 **/
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, img {
margin: 0;
border: medium none;
padding: 0;
}
/** 设置默认字体 **/
body, button, input, select, textarea {
font: 12px/1.5 ,tahoma, Srial, helvetica, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
font-size: 100%;
}
em {
font-style: normal;
}
/** 重置列表元素 **/
ul, ol {
list-style: none;
}
/** 重置超链接元素 **/
a {
text-decoration: none;
color: #333;
}
a:hover {
text-decoration: underline;
color: #F40;
}
/** 重置图片元素 **/
img {
border: 0;
}
/** 重置表格元素 **/
table {
border-spacing: 0;
border-collapse: collapse;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment