JavaScript Zoom whole Div

前端 未结 2 431
无人及你
无人及你 2021-01-19 18:17

I\'m searching for a JQuery script that can zoom in a whole div. I found the following plugins:

http://test.dpetroff.ru/jquery.iviewer/test/# and http://www.albanx.c

2条回答
  •  离开以前
    2021-01-19 18:51

    what about using the CSS3 transform 'scale' operation -- https://developer.mozilla.org/en-US/docs/CSS/transform? you'll have to write up the javascript for dealing with the mousewheel, but this will work (I've done this before).

    Seems like there's decent support, too: http://caniuse.com/transforms2d (note from caniuse: The scale transform can be emulated in IE < 9 using Microsoft's "zoom" extension, others are (not easily) possible using the MS Matrix filter)

提交回复
热议问题