h5-web fonts and font icons

You may want to use:

https://www.iconfont.cn/webfont?spm=a313x.7781069.1998910419.d81ec59f2#!/webfont/index: a web font

https://www.iconfont.cn/collections/index?spm=a313x.7781068.0.0&type=3: font icon

download

 

Fonts icon and web fonts that are downloaded that can be used: for example, to download these fonts only my words have the effect of web fonts

1.web font

1.1.html

 

1  <! - third step: the style of text with the corresponding -> 
2  < span class = "font-Web" >
The last class before graduation, the teacher told the students: "I look at you." 

  I am about to say goodbye, the teachers give up, to "look at." Yes ah, way of life so long, but the teacher can accompany the students walked, after all, only a section of the road. This section is hard, preaching, Tuition, doubts, all must pass through this road. Teacher to teach all the students, so that students from ignorance to knowledge of; to guide students to the right, so that students learn not only knowledge, but also to establish a correct outlook on life and values; doubly care to the students, so that students feel that they not only in the acquisition of knowledge and truth, but also in getting the teacher's love.

  "Holding a heart, without a half of grass to" This is Mr. Tao's famous people famous educator, Mr. Tao so, so the figure of the teacher, the teacher also has been true of this world. But also because of the hearts, only the "I look at you" share of sadness.

  Of course, in addition to sadness, there is hope.

  As shown in the teacher of the students said the phrase: "You look at reading."

  For the teacher, the student is about to wave goodbye. Teachers hope that students look at the reading, the word is short love long: Look reading, students can be more proficient in the knowledge to better cope with exams, more robustly take a good future path.

  Teachers and students back, the students will eventually have to travel, the teacher can give them, is sad, is hope, is a full watched love.

  Watched so full of love, I must have had, unfortunately, when I have never had strong feelings too, for many years until graduation, only to enjoy the memories. For example, I go back home in the Northeast after graduating from college to visit relatives when the primary school teacher far to see me and call my name, say that they could see was the back of what they have taught the students, said these words, eyes full head teacher It is sincere.

  After that I ask myself, if I saw the teacher back, I can recognize it? I'm afraid not. For example, my junior high school language teacher for many years after the Trustee about my cell phone number, to contact me, I just want to know how was she said she would be proud of me, and I do? Language teacher received a telephone that moment, I addition to moving more of a shame that I could have the same teacher for care? For all these, it should be the one "when people say that unusual," the teacher of us that love, that sadness and hope, always after, respectively, was the perception.

  Teachers know that, respectively, when they watched that a love of the students.

  The teachers do not know, after, respectively, and they are or will eventually become a scenic students love hearts, as time eternal.

  Today, because of a love of this figure watched, it makes me want to say to my teacher who taught sentence: "! Please let me look at reading, please let me see your"

21 </span>

 

 

 

1.2.css

 

. 1      <-! Web Font ->
 2      <style>
 . 3          / * Step: using the font-face font statement
 4          remember modify their path * / 
. 5          @ font-face {
 . 6              font-Family : 'WebFont' ;
 . 7              font-the display : the swap ;
 . 8              the src : URL ( '../ Fonts / webfont.eot') ; / * IE9 * / 
. 9              the src : URL ( '? ../ Fonts / webfont.eot #iefix') the format ( '-Embedded OpenType'), / * IE6-IE8 * / 
10             URL ( '../ Fonts / webfont.woff2') the format ( 'woff2'),
 . 11              URL ( '../ Fonts / webfont.woff') the format ( 'WOFF'), / * Chrome, Firefox * / 
12 is              URL ( '../fonts/webfont.ttf') the format ( 'TrueType'), / * Chrome, Firefox, Opera, Safari, the Android, the iOS 4.2+ * / 
13 is              URL ( '../ Fonts / webfont.svg # WebFont ') the format (' SVG ') ; / * the iOS 4.1- * / 
14          }
 15  
16          / * Step: style definitions used webfont * / 
. 17          .web-font {
 18 is              font-Family : "webfont" !important;
19             font-size: 16px;
20             font-style: normal;
21             -webkit-font-smoothing: antialiased;
22             -moz-osx-font-smoothing: grayscale;
23         }
24 
25 
26 
27     </style>

 

 

 

2. Fonts icon

2.1.html

 

1  <-! Step Three: Pick the icon to get the font encoding, applied to the page -> 
2  < span class = "IconFont Smile" > </ span > 
3  < span class = "IconFont News" > </ span > 
. 4  < span class = "IconFont Love" > </ span > 
. 5  < span class = "My IconFont" > </ span > 
. 6  < span class = "IconFont History" > </ span >
7 <span class="iconfont seek"></span>
8 <span class="iconfont set"></span>

 

 

 

2.2.css

 

1      <! - Font Icon ->
 2      <style>
 . 3          / * Step: generating a copy of the following items font-face @ * / 
. 4          @ font-face {
 . 5              font-Family : 'IconFont' ;
 . 6              the src : URL ( '../ Fonts / iconfont.eot') ;
 . 7              the src : URL ( '? ../ Fonts / iconfont.eot #iefix') the format ( '-Embedded OpenType'),
 . 8              URL ( '../ Fonts /iconfont.woff2 ') the format (' woff2 '),
 . 9              URL (' ../ Fonts / iconfont.woff ') the format (' WOFF '),
 10              URL (' ../ Fonts / IconFont.
ttf') format('truetype'),
11             url('../fonts/iconfont.svg#iconfont') format('svg');
12         }
13 
14 
15         /*第二步:定义使用 iconfont 的样式*/
16         .iconfont {
17             font-family: "iconfont" !important;
18             font-size: 16px;
19             font-style: normal;
20             -webkit-font-smoothing: antialiased;
21             -moz-osx-font-smoothing: grayscale;
22 
23             margin: 1px;
24         }
25 
26         /*笑脸*/
27         .smile::before{
28             content: "\e73d";
29             font-size: 30px;
30             color: red;
31         }
32         /*消息*/
33         .news::before{
34             content: "\e740";
35             font-size: 50px;
36             color: #ccc;
37         }
38         /*喜欢*/
39         .love::before{
40             content: "\e742";
41         }
42         /*我的*/
43         .my::before{
44             content: "\e743";
45         }
46         /*历史*/
47         .history::before{
48             content: "\e745";
49         }
50         /*查找*/
51         .seek::before{
52             content: "\e74b";
53         }
54         /*设置*/
55         .set::before{
56             content: "\e753";
57         }
58 
59     </style>

 

 

 

1. custom content generated from a corresponding font file 
2. source generating network web font
3.
a. Define custom font
b. Custom styles using custom fonts
c. Specify the style, the style calls

Guess you like

Origin www.cnblogs.com/FengBrother/p/11390553.html