object.Style.Zoom property not working in Firefox

前端 未结 2 1967
心在旅途
心在旅途 2020-12-18 13:51

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

2条回答
  •  被撕碎了的回忆
    2020-12-18 14:42

    zoom is not implemented in Firefox.

    The "replacement" is transform from CSS3: https://developer.mozilla.org/En/transform

    A JavaScript example for Firefox:

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

    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.

提交回复
热议问题