Max*_*Max 12 css css3 contentproperty material-design google-material-icons
如何在以下CSS内容属性中插入Google Material Icon"chevron icon right"(https://design.google.com/icons/#ic_chevron_right):
.bullet li a:before {
content: "";
}
Run Code Online (Sandbox Code Playgroud)
Vis*_*a S 27
2018年更新
谷歌删除了之前为IE9及以下版本显示的代码.要获取代码,请访问GitHub存储库中的codepoints文件.
链接到GitHub存储库中的代码点:https://github.com/google/material-design-icons/blob/master/iconfont/codepoints
第1步:包含材料图标样式表.
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
第2步 :
CSS代码:
.bullet li a:before {
font-family: "Material Icons";
content: "\e5cc";
}
Run Code Online (Sandbox Code Playgroud)
说明:该值e5cc是您为V形符号看到的代码.
2022 年更新
使用概述的新材料符号
.selector::before {
font-family: "Material Symbols Outlined";
content: "\e5cc";
}
Run Code Online (Sandbox Code Playgroud)
尝试这个。
.bullet li a:before {
font-family: FontAwesome;
content: "\f054";
}
Run Code Online (Sandbox Code Playgroud)
::before {
font-family: 'Material Icons';
content: "\E87C";
}
::after {
font-family: 'Material Icons';
content: "face";
}
Run Code Online (Sandbox Code Playgroud)
http://codepen.io/estelle/pen/MwvOjd