用于缩放和平移图像的Javascript [英] Javascript for zooming and panning an image
本文介绍了用于缩放和平移图像的Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一份关于JavaScript的项目需求,可以让用户平移和放大和缩小大图像。不幸的是,我对JavaScript的使用经验有限。
有人知道有一个可以满足我的要求的免费脚本吗?
解决方案
我认为有一个jquery ZoomImage插件,可以很好地用于这种情况。代码示例是 here 或此处。
还有一个使用了图片
I have a requirement in the project I am working on for a piece of JavaScript which will allow the user to pan over and zoom in and out of a large image.
Unfortunately, my experience with JavaScript is limited.
Does anybody know of a free script out there which would satisfy my requirements?
解决方案
There is a jquery ZoomImage plug-in to my opinion which would be good use for this case..Examples for code are here or here.
There is one that also uses a zoom toolbar next to the image
这篇关于用于缩放和平移图像的Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文