我想添加图像的字体真棒图标。假设我有一个空的图标,并希望用照片填充该开始的内部部分。那可能吗?我已经黑了,但真的得到了任何地方。任何帮助,将不胜感激。添加背景图像到字体真棒图标
[class^="icon-"]::before,
[class*=" icon-"]::before {
font-family: FontAwesome;
font-style: normal;
display: inline-block;
text-decoration: inherit;
}
.icon-star-empty:before {
content: "\f006";
}
.iconBackground:before {
font-size: 72px;
background: -webkit-gradient(linear, left top, left bottom, from(#f00), to(#333));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display initial;
}
添加每低于请求的小提琴。
你应该更详细一点的情况下,指定什么你试过等等。顺便说一句,你是否试图在'i'元素中强制使用'background-image'?试着让一个jsFiddle让我们随时随地玩你的想法。 –
您对WebKit唯一解决方案感兴趣吗? – thirtydot
@GuilhermeOderdenge不,我没有想到这一点。我会给它一个镜头。 – tattooedgeek