1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
| @charset "utf-8";
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/*禁止文本缩放 字体设置 取消touch高亮效果 */
html {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
-webkit-text-size-adjust: 100%;
font-family: system-ui, -apple-system, BlinkMacSystemFont, segoe ui, Roboto,
Helvetica, Arial, sans-serif, apple color emoji, segoe ui emoji,
segoe ui symbol;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
background: transparent;
}
body {
width: 100%;
height: 100%;
overflow: scroll;
-webkit-overflow-scrolling: touch;
background: #fff;
}
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,
label,
summary {
margin: 0;
padding: 0;
color: #1a1a1a;
/* touch-action: none; */
}
/*清除输入框内阴影 */
input,
select,
textarea {
border: 0;
-webkit-appearance: none;
appearance: none;
background-color: transparent;
outline: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-focus-ring-color: rgba(0, 0, 0, 0);
}
ol,
ul {
list-style: none;
}
/*禁止选中文本内容*/
*:not(input, select, textarea) {
-webkit-user-select: none;
}
/*禁用长按页面时的弹出菜单(iOS下有效) ,img和a标签都要加*/
img,
a {
-webkit-touch-callout: none;
}
a,
a:active,
a:hover {
text-decoration: none;
}
/* 去掉点击链接和文本框对象时默认的灰色半透明覆盖层(iOS)或者虚框(Android)*/
a,
button,
input,
textarea {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
button {
outline: none;
border: 1px solid transparent;
}
em,
i {
font-style: normal;
}
|