JavaScript Zoom整个Div [英] JavaScript Zoom whole Div
问题描述
我正在寻找一个可以放大整个div的JQuery脚本。我发现了以下插件:
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/#
和
http://www.albanx.com/?pid=1&subid=13
插件有正是我需要的东西(只需用滚轮放大和缩小)。但我有一个问题,我需要一个放大完整Div的脚本。有人可以帮我吗?
The plugins have exactly the things I need (just zoom in and out with your scrollwheel). But I have a problem, I need to have a script that zoom in a complete Div. Can someone help me please?
推荐答案
如何使用CSS3转换缩放操作 - https://developer.mozilla.org/en-US/docs/CSS/transform ?你必须编写用于处理鼠标滚轮的JavaScript,但这会起作用(我之前做过)。
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).
似乎也有不错的支持: http://caniuse.com/transforms2d (来自caniuse的说明:可以在IE< 9使用微软的缩放扩展,其他使用MS Matrix过滤器(不容易)是可能的。
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)
这篇关于JavaScript Zoom整个Div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!