Skip to content

Commit 7b979dd

Browse files
committed
Merge pull request PegasusWang#3 from kxxoling/gh-pages
添加 FontIcon 演示页面
2 parents 857f8c2 + 6416508 commit 7b979dd

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

fonticon.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<html>
2+
<head>
3+
<meta charset='utf-8'>
4+
<title>FontIcon 演示</title>
5+
<style>
6+
@font-face {
7+
font-family: 'iconfont';
8+
src: url('http://at.alicdn.com/t/font_1425368696_9550455.eot'); /* IE9*/
9+
src: url('http://at.alicdn.com/t/font_1425368696_9550455.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
10+
url('http://at.alicdn.com/t/font_1425368696_9550455.woff') format('woff'), /* chrome、firefox */
11+
url('http://at.alicdn.com/t/font_1425368696_9550455.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
12+
url('http://at.alicdn.com/t/font_1425368696_9550455.svg#iconfont') format('svg'); /* iOS 4.1- */
13+
}
14+
.icon {
15+
font-family: iconfont;
16+
}
17+
</style>
18+
</head>
19+
<body>
20+
<div>
21+
<p>未添加 font-family 的效果:
22+
<span>&#xe600;</span>
23+
</p>
24+
<p>添加 font-family 的效果:
25+
<span class="icon">&#xe600;</icon>
26+
</p>
27+
<div>
28+
</body>
29+
</html>

0 commit comments

Comments
 (0)