Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/41.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css -浏览器的webkit文本填充颜色替代方案?_Css - Fatal编程技术网

Css -浏览器的webkit文本填充颜色替代方案?

Css -浏览器的webkit文本填充颜色替代方案?,css,Css,此代码在Firefox中有效,但在Chrome中无效 h2 { font-size: 8rem; padding-top: 2rem; background: $gradient; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;} webkit文本填充颜色有其他选择吗?我认为它可以工作,正如您在这里看到的:(删除-webkit文本填充颜色行,您将看到)。

此代码在Firefox中有效,但在Chrome中无效

 h2 {
font-size: 8rem;
padding-top: 2rem;
background: $gradient;
background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;}

webkit文本填充颜色有其他选择吗?

我认为它可以工作,正如您在这里看到的:(删除
-webkit文本填充颜色
行,您将看到)。