我使用的是object.style.filter='Gray'
,object.style.filter='fliph'
,object.style.filter='flipv'
,object.style.filter='invert'
这是在IE中工作,但在Firefox中不工作。你能帮忙吗?如何访问firefox浏览器的object.style.filter?
0
A
回答
0
过滤器是特定于IE的。 CSS将努力设置颜色在IE和FF:
object.style.backgroundColor = 'gray'
如果你的目标是着色整个DIV,最好的办法是创建一个新的div覆盖第一,并且是部分透明的。
2
.style.filter
在Firefox中暴露了SVG定义的filter
CSS属性。该属性的有效值不包括'Gray'
。请参阅http://www.w3.org/TR/SVG11/filters.html#FilterProperty和https://developer.mozilla.org/en/applying_svg_effects_to_html_content#Example.3a.c2.a0Filtering
相关问题
- 1. 如何通过Python访问firefox浏览器的localStorage?
- 2. Firefox浏览器问题
- 3. 如何从浏览器访问Android
- 4. Chrome浏览器 - 相当于Firefox浏览器的IE浏览器
- 5. TinyMCE的问题与Firefox浏览器
- 6. IE浏览器兼容浏览器兼容性问题/ Firefox
- 7. 与Firefox浏览器
- 8. 如何访问webkit浏览器中的粘贴文件? (如谷歌浏览器)
- 9. 如何访问firefox浏览器中特殊字符的键盘代码?
- 10. 如何访问的Cookie在Chrome浏览器后我关闭浏览器
- 11. 如何在Firefox浏览器窗口
- 12. 如何发送pushnotifications到Firefox浏览器?
- 13. 如何专门针对Firefox浏览器?
- 14. 跨浏览器问题 - Firefox和Chrome
- 15. Mozilla Firefox浏览器兼容性问题
- 16. Div 100%跨浏览器firefox问题
- 17. Mozilla Firefox浏览器的ActiveX
- 18. 无法从插件浏览器访问本地存储在Firefox
- 19. 浏览器访问互联网,但终端和Firefox不
- 20. Netbeans x Firefox:无法通过外部浏览器访问网址
- 21. 如何访问.vbs文件,在Firefox和Chrome浏览器使用HTML
- 22. 浏览器不处理如Firefox分块响应,Safari浏览器
- 23. 如何通过Web浏览器访问boot2docker上的容器?
- 24. 如何添加xpi扩展到TFS硒火狐浏览器的Firefox浏览器
- 25. Phonegap:启动Firefox浏览器
- 26. 测试Firefox浏览器
- 27. JsTestDriver firefox浏览器崩溃
- 28. 浏览器不兼容firefox
- 29. Firefox浏览器显示
- 30. 访问默认浏览器的cookie
@Zake它不在Firefox中工作,但它也适用于背景。在div里面有任何图像,那个东西也是我想改变颜色,就像阴影一样。 – Subash
嗯,那么最好的办法是在第一个部分使用部分不透明的div,下面是一个例子:http://stackoverflow.com/questions/4416007/jquery-there-is-a-way-到应用滤色色调到一个图象/ 4416015#4416015 –