返回首页
当前位置: 主页 > 编程语言 > CSS教程 >

分享一个重置浏览器渲染的CSS文件 reset.css

时间:2017-06-26 14:54来源:电脑教程学习网 www.etwiki.cn 编辑:admin

分享一个重置浏览器渲染的CSS文件 reset.css ,大家平时制作网站经常要用到的。
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, i, 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: baseline;
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;
}

/* remember to define focus styles! */
:focus {
outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
border-collapse: collapse;
border-spacing: 0;
}

/* Resetting HTML5! */
section, article, aside, header, footer, nav, dialog, figure { display:block; }

------分隔线----------------------------
标签(Tag):reset.css 重置浏览器渲染
------分隔线----------------------------
推荐内容
猜你感兴趣