iconfont矢量图标样式引入

发布时间:2024年01月20日
@font-face {
  font-family: "iconfont"; /* Project id 2848128 */
  src: url('//at.alicdn.com/t/font_2848128_mchidofoxgo.woff2?t=1643706746390') format('woff2'),
       url('//at.alicdn.com/t/font_2848128_mchidofoxgo.woff?t=1643706746390') format('woff'),
       url('//at.alicdn.com/t/font_2848128_mchidofoxgo.ttf?t=1643706746390') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-search:before {
  content: "\e648";
}

.icon-quanbudingdan:before {
  content: "\e600";
}

.icon-31daifukuan:before {
  content: "\e601";
}

.icon-tuikuan:before {
  content: "\e8ab";
}

.icon-daishouhuo:before {
  content: "\e640";
}

.icon-home:before {
  content: "\e69b";
}

.icon-shoucang:before {
  content: "\e666";
}

.icon-kefufenxiermaikefu:before {
  content: "\e889";
}

.icon-chakantiezifenxiang:before {
  content: "\e660";
}

.icon-weibiaoti2fuzhi08:before {
  content: "\e625";
}

.icon-dingdan:before {
  content: "\e897";
}

.icon-gouwuche:before {
  content: "\e899";
}

.icon-fukuantongzhi:before {
  content: "\e60c";
}

.icon-icon-:before {
  content: "\e701";
}

.icon-shoucang1:before {
  content: "\e8c6";
}

/* 全局引入iconfont样式 */
@import "./styles/iconfont.wxss"
<view>
index首页
<text class="iconfont icon-gouwuche"></text>
</view>

在这里插入图片描述

文章来源:https://blog.csdn.net/m0_68935893/article/details/135711170
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。