@charset "utf-8";
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
//禁止文本缩放
html {
width: 100%;
height: 100%;
-webkit-text-size-adjust: 100%;
font-family: -apple-system, "PingFang SC","Helvetica Neue", Helvetica, STHeiTi, sans-serif;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
tap-highlight-color: rgba(0, 0, 0, 0);
font-size: 62.5%;
background: transparent;
}
body {
width: 100%;
height: 100%;
-webkit-overflow-scrolling: touch;
}
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, sumary {
margin: 0;
padding: 0;
}
//清除输入框内阴影
input, select,textarea {
border: 0;
-webkit-appearance: none;
appearance:none;
}
ol, ul {
list-style: none;
}
//禁止选中文本内容
*:not(input, select, textArea) {
user-select: none;
-webkit-user-select: none;
}
//禁用长按页面时的弹出菜单(iOS下有效) ,img和a标签都要加
img,a{
touch-callout: none;
-webkit-touch-callout:none;
}
a,a:active,a:hover {
text-decoration: none;
}