forked from xfhxbb/LArea
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlArea.html
More file actions
74 lines (69 loc) · 1.89 KB
/
lArea.html
File metadata and controls
74 lines (69 loc) · 1.89 KB
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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<title>lArea纯原生js城市选择</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
-webkit-appearance: none; //去掉浏览器默认样式
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-touch-callout: none;
box-sizing: border-box;
}
html,
body {
margin: 0 auto;
width: 100%;
min-height: 100%;
overflow-x: hidden;
-webkit-user-select: none;
}
body {
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
-webkit-text-size-adjust: 100%; //关闭自动调整字体
-webkit-overflow-scrolling: touch;
overflow-scrolling: touch;
}
input{
width: 90%;
height: 40px;
font-size: 18px;
border: 1px solid #19b5ee;
border-radius: 5px;
margin: 20px 5% 0 5%;
padding: 5px;
}
h1{
background-color: #19b5ee;
color: #fff;
font-size: 25px;
text-align: center;
padding: 10px;
}
</style>
<link rel="stylesheet" href="css/lArea.css">
</head>
<body class="static">
<div class="demo-content">
<h1>lArea纯原生js城市选择</h1>
<div class="content-block">
<input id="demo1" type="text" readonly="" name="input_area" placeholder="城市选择特效"/>
</div>
</div> <!--demo-content-->
<script src="js/lArea.min.js"></script>
<script>
var area = new lArea();
area.init({
'trigger': '#demo1',
'data':lAreaData//'js/AreaData.json'
});
</script>
</body>
</html>