Use a CSS Reset
2012-02-17 17:47
316 查看
This is another area that’s been debated to death. CSS resets: to use or not to use; that is the question. If I were to offer my own personal advice, I’d 100% recommend that you create your own reset file. Begin by downloading a popular one, like Eric Meyer’s, and then slowly, as you learn more, begin to modify it into your own. If you don’t do this, you won’t truly understand why your list items are receiving that extra bit of padding when you didn’t specify it anywhere in your CSS file. Save yourself the anger and reset everything! This one should get you started.
view plaincopy to clipboardprint?html, body, div, span,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
img, ins, kbd, q, s, samp,
small, strike, strong,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baselinebaseline;
background: transparent;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
view plaincopy to clipboardprint?html, body, div, span,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
img, ins, kbd, q, s, samp,
small, strike, strong,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baselinebaseline;
background: transparent;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
相关文章推荐
- 打造自己的reset.css
- css重置样式表reset.css
- ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
- myreset.css
- 目前比较全的CSS重设(reset)方法总结
- git版本回退 How do I use 'git reset --hard HEAD' to revert to a previous commit?
- WEB标准之CSS: 打造自己的重置样式reset.css[转]
- 打造自己的reset.css
- CSS Essentials(2)-How to use CSS,
- reset.css
- What Is A CSS Reset?
- 描述下 “reset” CSS 文件的作用和使用它的好处。
- ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
- 自己用的reset.css,大部分转载,加上自己常用的设置
- reset.css页面样式初始化
- 打造自己的reset.css
- reset.css
- 使用CSS来设置SVG中Use元素的样式
- 目前比较全的CSS重设(reset)方法总结
- 自己的css reset---jerryli cssreset