CSS样式重置代码

现实情况远非想的那么单纯容易清晰:当优越感逐渐转为失落感甚至挫败感时,当由坚信自己是一块金子到怀疑自己是一粒沙子时,愤怒,迷茫,自卑,焦急,躁动就开始与日俱增。

复制代码
代码如下:

/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/</p> <p>html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}</p> <p>body {
line-height:1;
}</p> <p>article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
display:block;
}</p> <p>nav ul {
list-style:none;
}</p> <p>blockquote, q {
quotes:none;
}</p> <p>blockquote:before, blockquote:after,
q:before, q:after {
content:'';
content:none;
}</p> <p>a {
margin:0;
padding:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}</p> <p>/* change colours to suit your needs */
ins {
background-color:#ff9;
color:#000;
text-decoration:none;
}</p> <p>/* change colours to suit your needs */
mark {
background-color:#ff9;
color:#000;
font-style:italic;
font-weight:bold;
}</p> <p>del {
text-decoration: line-through;
}</p> <p>abbr[title], dfn[title] {
border-bottom:1px dotted;
cursor:help;
}</p> <p>table {
border-collapse:collapse;
border-spacing:0;
}</p> <p>/* change border colour to suit your needs */
hr {
display:block;
height:1px;
border:0;
border-top:1px solid #cccccc;
margin:1em 0;
padding:0;
}</p> <p>input, select {
vertical-align:middle;
}

到此这篇关于CSS样式重置代码就介绍到这了。思路决定出路,观念决定方向,性格决定命运,生活方式决定健康!更多相关CSS样式重置代码内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!

您可能有感兴趣的文章
css让页脚保持在底部位置的四种方案

Flex布局史上最简单使用语法教程

新的CSS 伪类函数 :is() 和 :where()示例详解

纯CSS打字动画的如何实现示例

CSS浮动引起的高度塌陷问题