如何为firefox浏览器访问object.style.filter
How to access object.style.filter for firefox browser?
我使用的是object.style.filter='Gray'
, object.style.filter='fliph'
, object.style.filter='flipv'
, object.style.filter='invert'
,这在IE中工作,但在firefox中不起作用。你能帮帮忙吗?
Firefox中的.style.filter
公开了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
过滤器是特定于IE的。CSS可以在IE和FF中设置颜色:
object.style.backgroundColor = 'gray'
如果你的目标是为整个div着色,你最好的选择是创建一个覆盖第一个div的新div,并且是部分透明的
相关文章:
- 函数未在Object.keys或Object.getOwnPropertyNames下列出,但可以调用
- delete在Object上效率低下,但在DOM Element's的数据属性,与null out相比
- 有没有一种方法可以列出Ember.Object的所有绑定
- 如何取消object.prototypes javascript的一个函数
- 为什么是文档.旧版应用程序中的DOM-object.properties为null
- 将*.js文件的内容放入Object中
- Object.prototype using 'this'
- 使用Object.create()的角度服务继承
- 如何使用object.assign()从其他对象引用基本对象属性
- 循环的数组推入在Object容器中具有不同的值
- document.getElementById.style.backgroundImage not working
- object.style.fontSize未检索值
- object.style.height;不起作用
- Javascript object.style.color在create.js.erb中不起作用
- object.style.soom属性在Firefox中不起作用
- Object.style.filter =“Flipv"它在ie浏览器中运行良好.我怎么能在火狐浏览器
- 如何为firefox浏览器访问object.style.filter
- object.setAttribute()和object.style有什么区别?
- object.style.x没有'不要退货
- Javascript:当x是object.style.left;时更改x的值;