开发者

image-rendering DOM equivalent

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜