Last active
March 4, 2016 09:09
-
-
Save yedanbo/994fe8905f7f59b905b4 to your computer and use it in GitHub Desktop.
重置浏览器元素的一些默认属性样式(CSS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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