css zoom a block

zoom: 145%;
-moz-transform: scale(1.45);
-webkit-transform: scale(1.45);
Zoom and transform scale are not the same thing. They are applied at different times. Zoom is applied before the rendering happens, transform - after. The result of this is if you take a div with width/height = 100% nested inside of another div, with fixed size, if you apply zoom, everything inside your inner zoom will shrink, or grow, but if you apply transform your entire inner div will shrink (even though width/height is set to 100%, they are not going to be 100% after transformation).
In my opinion, i think we should use zomm not transform, transform is just resize the element.

评论

热门博文