有Gecko相当于-webkit-mask或Gecko浏览器的一种奇怪的降级方式? [英] Is there a Gecko equivalent to -webkit-mask or a fancy way of degrading for Gecko browsers?

查看:112
本文介绍了有Gecko相当于-webkit-mask或Gecko浏览器的一种奇怪的降级方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个坚实的答案,看看是否有等效于-webkit-mask在Gecko浏览器/ Firefox?

I'm looking for a solid answer on whether or not there is an equivalent to -webkit-mask in Gecko browsers/Firefox?

如果没有,任何方式的退化-webkit-mask在CSS到一个直的背景图像交易或者我应该放弃并使用Javascript?

If not, is there any way of degrading -webkit-mask in CSS to a straight background-image deal or should I just give up and use Javascript?

非常感谢!

推荐答案

如果你定位firefox,它有伟大的SVG支持,所以你现在可以使用SVG蒙版而不是CSS。 这里是Mozilla关于如何在SVG中做面具的文档 Webkit面具不是标准跟踪 - 所以我有一个个人的疑问你会看到他们的跨浏览器。

If you're targeting firefox, it has great SVG support, so you can now use SVG masks instead of CSS. Here is Mozillas documentation on how to do a mask in SVG Webkit masks aren't standards track - so I have a personal doubt that you'll ever see them cross-browser.

这篇关于有Gecko相当于-webkit-mask或Gecko浏览器的一种奇怪的降级方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆