简体   繁体   English

CSS文本背景剪辑在Firefox上与在Chrome上非常不同

[英]CSS text background-clip very different on Firefox than on Chrome

Chrome: the desired effect Chrome:理想的效果 在此输入图像描述

Firefox: what is happening Firefox:发生了什么 在此输入图像描述

Code: 码:

  background-color: Red;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: rgba(255,255,255,0.5) 0px 3px 3px;

Thoughts?? 思考?

Even though -moz-background-clip is supported in firefox. 尽管firefox支持-moz-background-clip。 The 'text' value is not supported. 不支持“text”值。 You are going to have to go with another solution for non webkit browsers. 您将不得不使用另一个非webkit浏览器的解决方案。

Example: http://nimbupani.com/using-background-clip-for-text-with-css-fallback.html 示例: http//nimbupani.com/using-background-clip-for-text-with-css-fallback.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM