-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path开发规范HEAD模板.html
71 lines (50 loc) · 2.29 KB
/
开发规范HEAD模板.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
<!DOCTYPE html> //文档类型
<html lang="zh-cmn-Hans"> //语言属性:简体中文
<head>
<meta charset="utf-8"> //字符编码
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> //IE的兼容模式
<title>Style Guide</title>
<meta name="description" content="不超过150个字符">
<meta name="keywords" content=""> //meta,SEO优化
<meta name="author" content="name, [email protected]">
<!-- 为移动设备添加 viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"> //移动设备端设备优化
<!-- iOS 图标 -->
<link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-57x57-precomposed.png"> //默认,必须有
<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml" /> //通过Rss读取内容
<link rel="shortcut icon" href="path/to/favicon.ico"> //Tab 头图标
<style type="text/css">
.declaration-order {
/* Positioning */
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 100;
/* Box model */
display: block;
box-sizing: border-box;
width: 100px;
height: 100px;
padding: 10px;
border: 1px solid #e5e5e5;
border-radius: 3px;
margin: 10px;
float: right;
overflow: hidden;
/* Typographic */
font: normal 13px "Helvetica Neue", sans-serif;
line-height: 1.5;
text-align: center;
/* Visual */
background-color: #f5f5f5;
color: #fff;
opacity: .8;
/* Other */
cursor: pointer;
}
/* 异步加载第三方内容 当你无法保证嵌入第三方内容比如 Youtube 视频或者一个 like/tweet 按钮可以正常工作的时候,你需要考虑用异步加载这些代码,避免阻塞整个页面加载。 (function() { var script, scripts = document.getElementsByTagName('script')[0]; function load(url) { script = document.createElement('script'); script.async = true; script.src = url; scripts.parentNode.insertBefore(script, scripts); } load('//apis.google.com/js/plusone.js'); load('//platform.twitter.com/widgets.js'); load('//s.widgetsite.com/widget.js'); }()); 避免使用 jQuery 实现动画 禁止使用 slideUp/Down() fadeIn/fadeOut() 等方法; 尽量不使用 animate() 方法; */
</style>
</head>
</html>