-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
261 lines (218 loc) · 5.45 KB
/
index.html
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>rem to rpx</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<h3><label for="source">原始代码</label></h3>
<textarea name="source" id="source" cols="120" rows="20">
/* choice.wxss */
.choice-address {
padding-top: 2.8125rem
}
.choice-address .choice-address-index {
padding: .625rem 1rem;
background-color: #fff
}
.choice-address .choice-address-index h2 {
color: #999;
line-height: 2.125rem;
font-size: .875rem
}
.choice-address .choice-address-index .now-location {
height: 2.1875rem
}
.choice-address .choice-address-index .now-location em, .choice-address .choice-address-index .now-location a {
display: inline-block
}
.choice-address .choice-address-index .now-location em {
display: block;
width: 100%;
padding-right: 5.625rem;
line-height: 2.1875rem;
font-size: .9375rem
}
.choice-address .choice-address-index .now-location a {
height: 1.4375rem;
padding-left: 1.5rem;
top: .375rem;
right: 0;
line-height: 1.625rem;
font-size: .75rem;
color: #ff5d3d;
background: url("../images/icon_now_address.png") no-repeat left center;
-webkit-background-size: 1rem auto;
background-size: 1rem auto
}
.choice-address .choice-address-item {
background: #fff;
padding: 0 1rem 0
}
.choice-address .choice-address-item h2 {
line-height: .875rem;
color: #999;
font-size: .875rem;
padding: 1.25rem 0
}
.choice-address .choice-address-item ul {
max-height: 12.5rem
}
.choice-address .choice-address-item ul li a {
display: block;
width: 100%;
padding: 1rem 1rem 1rem 0;
line-height: 1.375rem
}
.choice-address .choice-address-item ul li a div {
width: 100%;
font-size: .875rem;
line-height: 1.125rem;
margin-bottom: .5rem;
padding-top: .125rem;
overflow: hidden
}
.choice-address .choice-address-item ul li a div span {
display: inline-block;
line-height: 1.4;
padding-top: .125rem
}
.choice-address .choice-address-item ul li a div span:first-child {
margin-right: 1rem
}
.choice-address .choice-address-item ul li a p {
padding-left: 1.75rem;
line-height: .75rem;
color: #999;
font-size: .75rem
}
.choice-address .choice-address-item ul li a p.no_note {
padding-left: 0
}
.choice-address .choice-address-item ul li.cur:after {
content: "";
position: absolute;
right: 0;
top: 50%;
width: 1rem;
height: 1rem;
margin-top: -.3125rem;
background: url(../images/icon_check_active.png) no-repeat center;
-webkit-background-size: 1rem;
background-size: 1rem
}
.choice-address .choice-address-item ul li:first-child a {
padding-top: 0
}
.choice-address .choice-address-item ul li:last-child a {
border: 0
}
.choice-address .choice-address-item .empty-btn {
width: 100%;
height: 2.5rem;
line-height: 2.5rem;
text-align: center;
background: #fff;
color: #999;
font-size: .9375rem
}
.choice-address .history-address-item {
background: #fff;
padding: 1.25rem 0 .375rem 1rem
}
.choice-address .history-address-item .icon-clear {
position: absolute;
top: 1rem;
right: 1rem
}
.choice-address .history-address-item h2 {
line-height: .875rem;
color: #999;
font-size: .875rem;
padding-bottom: .875rem
}
.choice-address .history-address-item ul li a {
display: block;
width: 100%;
line-height: .9375rem;
font-size: .9375rem;
padding: 1rem 0
}
.choice-address .history-address-item ul li:first-child a {
padding: .375rem 0 1rem
}
.choice-address .history-address-item .more_address a {
position: relative;
display: block;
width: 100%;
padding: .625rem 1rem .375rem 0;
line-height: 1.375rem
}
.choice-address .history-address-item .more_address a:after {
position: absolute;
right: 1rem;
top: 50%;
width: 0.5rem;
height: 0.5rem;
content: "";
border-left: 0.125rem solid #999;
border-bottom: 0.125rem solid #999;
-webkit-transform: translateY(-50%) scaleY(1) rotateZ(-136deg);
transform: translateY(-50%) scaleY(1) rotateZ(-136deg)
}
.error img {
display: block;
width: 42.13333%;
margin: 7.625rem auto 2.5rem
}
.error p {
margin: 0 .75rem;
color: #808080;
font-size: .9375rem;
text-align: center
}
.choice-address-result {
position: absolute;
top: 2.8125rem;
left: 0;
right: 0;
background: #fff;
overflow: auto;
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
z-index: 9
}
.choice-address-result ul {
padding-left: 1rem
}
.choice-address-result ul li {
width: 100%
}
.choice-address-result ul li a {
display: block;
padding: .75rem 1rem .75rem 0
}
.choice-address-result ul li a em {
line-height: 1.375rem;
font-size: .875rem
}
.choice-address-result ul li a p {
line-height: 1.125rem;
font-size: .75rem;
color: #777;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap
}
</textarea>
<div>
<button id="convertButton">点击转换</button>
</div>
<h3><label for="target">转换百分比之后的代码</label></h3>
<textarea name="target" id="target" cols="120" rows="20"></textarea>
<script src="index.js"></script>
</body>
</html>