@charset 'utf-8'
html,
body {
/* 绝对定位的标准 */
position: relative;
/* 避免横向滚动 */
width: 100%;
/* 取消默认点击阴影 */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
/* 弹性滚动 */
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
/* 优化字体渲染 */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
/* 取消默认边距 */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
dl,
dd,
ul,
ol,
th,
td,
button,
figure,
input,
textarea,
form,
pre,
code,
legend,
fieldset,
blockquote {
margin: 0;
padding: 0;
}
/* 移除默认边框 */
img,
input,
button,
textarea {
border: none;
}
/* 取消 textarea 默认的缩放 */
textarea {
resize: none;
}
/* 取消超链接的下划线 */
a {
text-decoration: none;
}
/* 取消列表项前的小点 */
ol,
ul,
li {
list-style: none;
}
/* 防止 fixed 抖动 */
fixed {
position: fixed;
-webkit-transform: translateZ(0);
}