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

编程入门 行业动态 更新时间:2024-10-26 13:28:04
CSS文本背景剪辑在Firefox上与在Chrome上非常不同(CSS text background-clip very different on Firefox than on Chrome)

Chrome:所需的效果

Firefox:发生了什么

码:

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;

思考?

Chrome: the desired effect

Firefox: what is happening

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??

最满意答案

尽管firefox支持-moz-background-clip。 不支持“text”值。 您将不得不使用非webkit浏览器的其他解决方案。

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

Even though -moz-background-clip is supported in firefox. The 'text' value is not supported. You are going to have to go with another solution for non webkit browsers.

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

更多推荐

本文发布于:2023-08-04 10:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1414110.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:剪辑   文本   背景   CSS   background

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!