清楚默认样式的代码文件
/* -start:Eric Meyer’s CSS 清零代码- */
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,
font,
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 {
background: transparent;
border: 0;
margin: 0;
outline: 0;
padding: 0;
vertical-align: bottom;
}
body {
line-height: 1;
word-break: break-word;
-webkit-tap-highlight-color: transparent;
-webkit-user-select: none;
-webkit-text-size-adjust: 100% !important; // 防止 ios 中微信字体变大后布局错乱
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: '';
content: none;
}
:focus {
outline: 0;
}
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
p,
ul,
h3,
h1,
h2,
font {
margin: 0;
padding: 0;
}
h1,
h2,
h3 {
font-size: 1em;
}
a:link,
a:visited,
ins {
text-decoration: none;
}
/* -end:Eric Meyer’s CSS 清零代码- */
html {
font-family: -apple-system, sans-serif;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
user-select: none;
}
// body {
// font-size: 26px;
// }
::-webkit-scrollbar {
display: none;
}