![](/img/trans.png)
[英]How to add a twitter-bootstrap icon as a CSS background-image?
[英]How add icon from Angular Material in background-image?
如何从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;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.