选择图标加入购物车,然后加入项目。
image.png
点击发起在线连接,把生成的在线连接复制到网页中
(每次添加图标都要用最新的连接)
复制图标的编码即可使用。
<view>
<text class="test"></text>
<text class="test"></text>
<text class="test"></text>
<text class="test"></text>
<text class="test"></text>
</view>
<style>
@font-face {
font-family: 'iconfont';
src: url('https://at.alicdn.com/t/font_1019382_qgglpg9yim.ttf') format('truetype');
}
.test {
font-family: iconfont;
margin-left: 20upx;
}
</style>
image.png