-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
110 lines (96 loc) · 3.47 KB
/
test.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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>添加到主屏幕示例</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="我的应用">
<link rel="apple-touch-icon" href="/api/placeholder/180/180">
<link rel="apple-touch-icon" sizes="152x152" href="/api/placeholder/152/152">
<link rel="apple-touch-icon" sizes="180x180" href="/api/placeholder/180/180">
<link rel="apple-touch-icon" sizes="167x167" href="/api/placeholder/167/167">
<link rel="manifest" href="data:application/json;charset=utf-8,{
"name": "我的应用",
"short_name": "应用",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#000000",
"icons": [
{
"src": "/api/placeholder/192/192",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/api/placeholder/512/512",
"sizes": "512x512",
"type": "image/png"
}
]
}">
<link rel="icon" type="image/png" href="/api/placeholder/32/32">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
max-width: 600px;
margin: 0 auto;
padding: 20px;
line-height: 1.6;
}
.instructions {
margin-top: 20px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 8px;
border: 1px solid #dee2e6;
}
h1 {
color: #333;
font-size: 24px;
margin-bottom: 20px;
}
.platform {
margin-bottom: 30px;
}
.platform h2 {
color: #666;
font-size: 20px;
margin-bottom: 10px;
}
ol {
margin: 0;
padding-left: 20px;
}
li {
margin-bottom: 8px;
}
</style>
</head>
<body>
<h1>添加到主屏幕示例</h1>
<div class="instructions">
<div class="platform">
<h2>iOS 设备:</h2>
<ol>
<li>打开 Safari 浏览器</li>
<li>点击底部分享按钮</li>
<li>选择"添加到主屏幕"选项</li>
<li>确认添加</li>
</ol>
</div>
<div class="platform">
<h2>Android 设备:</h2>
<ol>
<li>打开 Chrome 浏览器</li>
<li>点击右上角菜单按钮</li>
<li>选择"添加到主屏幕"选项</li>
<li>确认添加</li>
</ol>
</div>
</div>
<p>这是一个示例页面,展示了如何配置网页以支持添加到移动设备主屏幕的功能。实际使用时,请替换占位图片为您自己的应用图标。</p>
</body>
</html>