html页面模板
html 结构一般如下:
<!DOCTYPE HTML>
<html>
<head>
<!--添加一些header头-->
</head>
<body>
<!--这里添加html页面的主体-->
<script>
</script>
</body>
<style type="text/css">
</style>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
详细的结构如下:
<!DOCTYPE HTML>
<html>
<head>
<!--这部分是推荐的固定部分,设置utf-8,推荐浏览器将页面解释为chrome内等核-->
<meta charset="utf-8"/>
<meta name="renderer" content="webkit">
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<title>title-aaa</title>
<!--添加一些ico、css、js文件-->
<link rel="icon" type="image/png" href="_STATIC/ico/***.ico"/>
<link type="text/css" rel="stylesheet" href="_STATIC/css/***.css"/>
<link type="text/css" rel="stylesheet" href="_STATIC/css/font_***.css">
<script type="text/javascript" src="_STATIC/js/***.js"></script>
<script type="text/javascript" src="_STATIC/js/font_***.js"></script>
</head>
<body>
<!--这里添加html页面的主体-->
<script>
</script>
</body>
<style type="text/css">
</style>
</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
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
编辑 (opens new window)
上次更新: 2021/10/11, 12:43:58