重置样式表的目标是减少浏览器在默认行高,边距和标题字体大小等方面的不一致性。重置样式经常出现在CSS框架中,原始的“meyerweb reset”进入Blueprint等等。
这里给出的重置样式有意非常通用。body例如,没有为元素设置任何默认颜色或背景。我不特别建议您在自己的项目中以不变的状态使用它。应对其进行调整,编辑,扩展和调整以匹配您的特定重置基线。填写页面,链接等的首选颜色。
换句话说,这是一个起点,而不是一个没有触感的独立黑匣子。
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, 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, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
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;
}
//自己加的加载
.el-loading{
position: absolute;
z-index:2000;
background-color: rgba(255,255,255,.7);
margin: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
-webkit-transition: opacity .3s;
transition: opacity .3s;
}
.el-loading-spinner{
top: 50%;
margin-top: -21px;
width: 100%;
text-align: center;
position: absolute;
}