How does the iconfont with its own color not change color in the a tag?

The icon in

iconfont has its own color, which is wrapped in the a tag and is overwritten by the default color of the a tag. How to solve it? Beginner, ask for guidance! Thank you!

the icon selected is monochrome. You can specify
with color, but what if it is multicolor?

<a href=""><i class="iconfont icon-weixin"></i></a>

clipboard.png

clipboard.png
clipboard.png

Sep.06,2021

iconfont can only be monochrome. If the requirement is multicolor, use svg format.

Menu