The color of Ali font icon in uni-app is wrong.



Color


is not supported.

introduce color icons

1. Introduce iconfont.js into the project

// main.js
import './assets/iconfont.js'

2. Use

<svg class="icon" aria-hidden="true">
  <use xlink:href="-sharpqc-icecream"></use>
</svg>

3. Modify size

.icon {
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

SVG, does not have such a problem, direct file form introduces

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf76ac-318c9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf76ac-318c9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?