object.Style.Zoom属性在Firefox中不起作用 [英] object.Style.Zoom property not working in Firefox

查看:420
本文介绍了object.Style.Zoom属性在Firefox中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 object.Style.Zoom 在div标签内进行缩放,它在 IE 。我需要它为 firefox 。请指导我。我可以得到任何替代style.zoom。

I am using object.Style.Zoom for making zoom inside the div tag, it is working in IE. I need it for firefox. Please guid me. Can i get any replacement for style.zoom.

推荐答案

zoom 是没有在Firefox中实现。

zoom is not implemented in Firefox.

替换是 transform from CSS3: https://developer.mozilla.org/En/transform

Firefox的JavaScript示例:

A JavaScript example for Firefox:

document.getElementById('x').style.MozTransform = "scale(2)";
document.getElementById('x').style.MozTransformOrigin = "0 0";

值得指出的是,CSS3转换是。您应该只使用缩放作为IE8的降级功能。

It's worth pointing out that CSS3 transforms are supported in all modern browsers. You should only be using zoom as a fallback for IE8 and lower.

这篇关于object.Style.Zoom属性在Firefox中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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