The Firefox & Chrome (Webkit) equivalents to the IE-specific zoom
property are, respectively, -moz-transform
and -webkit-transform
.
A sample code would be:
.zoomed-element {
zoom: 1.5;
-moz-transform: scale(1.5);
-webkit-transform: scale(1.5);
}
You'd have to be a bit more careful with Javascript (test for existence first), but here's how you'd manipulate them:
el.style.zoom = 1.5;
el.style.MozTransform = 'scale(1.5)';
el.style.WebkitTransform = 'scale(1.5)';
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…