在CSS中引入阿里图标非常方便,在这篇文章中我们将会介绍如何使用。 首先,我们需要去阿里图标官网https://www.iconfont.cn/注册账号并登录。然后我们可以在官网上搜索需要的图标,可以
@font-face { font-family: 'iconfont'; src: url('iconfont.ttf') format('truetype'), url('iconfont.svg#iconfont') format('svg'), url('iconfont.eot'), url('iconfont.woff'); } .iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -webkit-text-stroke-width: 0.2px; -moz-osx-font-smoothing: grayscale; }
<p>这是一个箭头图标<i class="iconfont"></i></p>
粉丝
0
关注
0
收藏
0