直接全局引入iconfont, 先选择自己想要的icon图标加入到购物车,然后添加到项目中,image.png
image.png

  1. @font-face {
  2. font-family: "iconfont";
  3. src: url('//at.alicdn.com/t/font_1906953_0m9tbudwu0jc.eot');
  4. src: url('//at.alicdn.com/t/font_1906953_0m9tbudwu0jc.eot?#iefix') format('embedded-opentype'),
  5. url('//at.alicdn.com/t/font_1906953_0m9tbudwu0jc.woff2') format('woff2'),
  6. url('//at.alicdn.com/t/font_1906953_0m9tbudwu0jc.woff') format('woff'),
  7. url('//at.alicdn.com/t/font_1906953_0m9tbudwu0jc.ttf') format('truetype'),
  8. url('//at.alicdn.com/t/font_1906953_0m9tbudwu0jc.svg#iconfont') format('svg');
  9. }
  10. .iconfont {
  11. font-family: "iconfont" !important;
  12. font-size: 16px;
  13. font-style: normal;
  14. -webkit-font-smoothing: antialiased;
  15. -moz-osx-font-smoothing: grayscale;
  16. }

css

image.png