问题 FontAwesome 5 offers thousands of icons that are built with SVG. This way, it's easy to color the entire icon by using fill . But what if I want to use multiple colors? For example, given the icon Google, I want to color it like so: 回答1: By using gradient for the color and two icons we may achieve this but it remains a hacky way and you need to handle each case (icon + coloration) specifically: .fa-google path{ fill:url(#grad1); } .fa-google + .fa-google path{ fill:url(#grad2); } .icon {