content: "\e600"

w图标生成原理。

 

 1 <style>
 2     @font-face {
 3         font-family: iconfont-sm;
 4         src: url(//at.alicdn.com/t/font_1433401008_2229297.woff) format('woff'), url(//at.alicdn.com/t/font_1433401008_2229297.ttf) format('truetype'), url(//at.alicdn.com/t/font_1433401008_2229297.svg#iconfont) format('svg')
 5     }
 6 
 7     .icon {
 8         font-family: iconfont-sm !important;
 9         font-style: normal;
10         display: inline-block;
11         vertical-align: middle;
12         background-size: 100% auto;
13         background-position: center;
14         -webkit-font-smoothing: antialiased;
15         -webkit-text-stroke-width: .2px;
16         -moz-osx-font-smoothing: grayscale
17     }
18 
19     .icon-cart:before {
20         content: "\e600"
21     }
22 </style>
23 
24 <P class=" icon icon-cart">This is a somewhat long HTML
25     paragraph   </P>

 

posted @ 2017-02-08 15:33  papering  阅读(1310)  评论(0编辑  收藏  举报