开发者

image-rendering DOM equivalent

开发者 https://www.devze.com 2023-02-17 04:38 出处:网络
What\'s the DOM equivalent of the image-rendering CSS property in Firefox? i.e. is there a way to set it aside from doing element.style.cssText = \"image-rendering: -moz-crisp-edges开发者_如何学JAVA;\

What's the DOM equivalent of the image-rendering CSS property in Firefox? i.e. is there a way to set it aside from doing element.style.cssText = "image-rendering: -moz-crisp-edges开发者_如何学JAVA;"?

Note: browser compatibility is not an issue.


In firefox 4.0rc1 I can use

element.style.imageRendering = "-moz-crisp-edges";

without problems.

Like with any other css property just switch from hyphen-lowercase to camelCase.

0

精彩评论

暂无评论...
验证码 换一张
取 消