-
Notifications
You must be signed in to change notification settings - Fork 0
/
fonts.html
148 lines (143 loc) · 4.32 KB
/
fonts.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>测试引用字体-webfont</title>
<style>
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
.div-img{
width: 980px;
height: 420px;
margin: 0 auto;m
border: 2px solid black;
box-shadow: 0 0 15px black;
background-image: url("./img/TfvncNaIT.jpg");
}
.banner{
display: block;
width: 100%;
/*height: auto;*/
}
.container{
width: 1200px;
/*height: 1000px;*/
margin: 0 auto;
}
.bg-gray{
background-color: darkgrey;
}
.bg-red{
background-color: rgba(255, 0, 0, 0.3);
}
.row{
width: 100%;
border: 2px solid black;
float: left;
/*text-align: center;*/
}
/*.row:after{*/
/*content: '';*/
/*display: block;*/
/*}*/
.col-4{
width: 33.33%;
height: 400px;
float: left;
border: 2px solid black;
text-align: center;
}
/*
* 字体 webfont font-spider
*/
/*声明 WebFont*/
@font-face {
font-family: 'testfont';
src: url('./font/testfont.eot');
src:
url('./font/testfont.eot?#font-spider') format('embedded-opentype'),
url('./font/testfont.woff') format('woff'),
url('./font/testfont.ttf') format('truetype'),
url('./font/testfont.svg') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'zhonghei';
src: url('./font/zhonghei.eot');
src:
url('./font/zhonghei.eot?#font-spider') format('embedded-opentype'),
url('./font/zhonghei.woff') format('woff'),
url('./font/zhonghei.ttf') format('truetype'),
url('./font/zhonghei.svg') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'zhongyuan';
src: url('./font/zhongyuan.eot');
src:
url('./font/zhongyuan.eot?#font-spider') format('embedded-opentype'),
url('./font/zhongyuan.woff') format('woff'),
url('./font/zhongyuan.ttf') format('truetype'),
url('./font/zhongyuan.svg') format('svg');
font-weight: normal;
font-style: normal;
}
.font-xihei{
font-family: 'testfont';
}
.font-zhonghei{
font-family: 'zhonghei';
}
.font-zhongyuan{
font-family: 'zhongyuan';
}
</style>
</head>
<body>
<br>
<div class="div-img">
<!--<img src="" alt="" class="banner">-->
</div>
<br>
<div class="container bg-gray">
<div class="row">
<div class="col-4 bg-red">
<img src="img/camera.png" alt="">
<h2 class="font-xihei">书法家中圆体abcurtururt132454757547</h2>
</div>
<div class="col-4 bg-red">
<img src="img/still-life.jpg" alt="" style="width: 100%; height: auto">
<h2 class="font-zhonghei">ddfhmldhr</h2>
</div>
<div class="col-4 bg-red">
<img src="img/TfvncNaIT.jpg" alt="" style="width: 100%; height: auto">
<h2 class="font-zhongyuan">书法家中圆体urtururt</h2>
</div>
</div>
</div>
<script>
// 只适用ie,获取IP地址
// function getLocalIPAddr(){
// var oSetting = null;
// var ip = null;
// try{
// oSetting = new ActiveXObject("rcbdyctl.Setting");
// ip = oSetting.GetIPAddress;
// if (ip.length == 0){
// return "没有连接到Internet";
// }
// oSetting = null;
// }catch(e){
// return ip = e;
// }
// return ip;
// }
// alert(getLocalIPAddr());
</script>
</body>
</html>