1
我使用object.Style.Zoom
在div標籤內部進行縮放,它在IE
中工作。我需要它firefox
。請指導我。我可以獲得style.zoom的任何替代品嗎?object.Style.Zoom屬性在Firefox中不起作用
我使用object.Style.Zoom
在div標籤內部進行縮放,它在IE
中工作。我需要它firefox
。請指導我。我可以獲得style.zoom的任何替代品嗎?object.Style.Zoom屬性在Firefox中不起作用
zoom
未在Firefox中實現。
的 「更新換代」 是CSS3 transform
:https://developer.mozilla.org/En/transform
針對Firefox JavaScript是例子:
document.getElementById('x').style.MozTransform = "scale(2)";
document.getElementById('x').style.MozTransformOrigin = "0 0";
值得指出的是,CSS3變換是supported in all modern browsers。您應該只使用zoom
作爲IE8及更低版本的回退。
非常感謝,它的工作很好。但它的div標籤。你能幫忙嗎?我可以設置最高和最低爲0. – Subash
是的,你可以調整['transform-origin'屬性](https://developer.mozilla.org/En/CSS/-moz-transform-origin)。我已經更新了我的答案。 – thirtydot
您的縮放代碼正在工作,沒有任何干擾。我嘗試爲object.runtimestyle.filter ='灰色'的灰度和object.runtimestyle.filter ='反轉'爲反轉顏色。這些東西在IE中工作正常,但Firefox。你能幫忙嗎? – Subash