css - 如何在背景图像中添加来自 Angular Material 的图标?
问题描述
如何在 bacground-image 中添加来自 Angular Material 的 arrow_forward 图标(在 :after 中)?这个图标不需要下载。我不知道如何在css中获取它。
.item {
position: relative;
min-height: 100px;
border: 1px solid #adb8c1;
&:after {
content: '';
position: absolute;
top: 50%;
right: -25px;
display: block;
width: 10px;
height: 10px;
background: blue;
}
}
<md-list class="list">
<div class="item"></div>
</md-list>
解决方案
我认为这会有所帮助
&:after {
font-family: "Material Icons";
content: "\E876";
position: absolute;
top: 50%;
right: -25px;
display: block;
width: 10px;
height: 10px;
background: blue;
}
推荐阅读
- javascript - 如何动态地将 html 片段附加到网页中?
- playframework - 为什么不将 WebJars 提取到 lib 文件夹中
- reactjs - 使用 Formik 表单的 React-datepicker
- python - 有效地实施包含-排除
- flutter - 如何在颤动中使用 sharedpref 保存最大持续时间?
- bash - Ansible:与 docker 相关的命令在 playbook 中不起作用,但一旦直接运行就起作用
- amazon-web-services - 无法连接到 XX.XX.XXX.XX 端口 9200:EC2 上的连接被拒绝
- google-bigquery - BigQuery 无法解析 avro shcema 文件
- google-apps-script - 如何在 Google Apps 脚本中多次加快复制/创建文件的速度?
- javascript - 通过公共键和值组合数组中的对象