-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (53 loc) · 1.69 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>足球竞赛规则</title>
<link rel="icon" href="icons8-football-96.png" type="image/png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: '足球竞赛规则2023/24',
repo: '',
loadSidebar: true,
search : 'auto',
homepage: 'declaration.md',
markdown: {
renderer: {
image: function(href, title, text) {
// 按照原来的渲染 img
var image_html = this.origin.image.apply(this, arguments)
// 用 figure 包一下图片,实现居中
return '<figure>' + image_html + '<figcaption>' + text +
'</figcaption></figure>'
}
}
}
}
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<style>
figure {
text-align: center
}
.myImageClass {
width: 100vw; /* 宽度设为视窗宽度的100% */
height: auto; /* 高度等比例自适应 */
}
/* 桌面端样式:通常以屏幕宽度为768px作为移动端和桌面端的分界点 */
@media (min-width: 768px) {
.myImageClass {
width: 40vw; /* 宽度设为视窗宽度的50% */
}
}
</style>
</body>
</html>