How to set the CSS content property with a Google Material Icon?

前端 未结 5 759
礼貌的吻别
礼貌的吻别 2020-12-29 09:27

How can I insert the Google Material Icon \"chevron icon right\" (https://design.google.com/icons/#ic_chevron_right) in the following CSS content property:

.         


        
5条回答
  •  無奈伤痛
    2020-12-29 09:38

    If you already included the minified CSS from materialdesignicons.com then just use the Material Design Icons font family instead:

    ::after {
        font-family: 'Material Design Icons';
        content: "\f054";
    }
    

    There is also a convenient Cheat Sheet available.

提交回复
热议问题