0

我正在使用-webkit-gradient文本,但它在 android 操作系统上创建了一个渐变块。后备颜色在其他浏览器中似乎可以正常工作,例如不使用选择器,但是当我添加.webkit选择器时,就像我在渐变下方一样,渐变停止适用于所有浏览器。这样做的正确方法是什么?

div#item-header h2 a
{
text-decoration:none;
text-transform:uppercase;
color:#bf000f;
font-family:ImpactWebFont;
font-weight:normal;
}
div#item-header h2 a.webkit
{
    background: -webkit-gradient(linear, left top, left bottom, from(#D60011), to(#540007));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
4

0 回答 0