http://www.elevateweb.co.uk/image-zoom/examples
Download the source files (available here) and include the jquery and elevatezoom plugin files into your project
<script type="text/javascript" src="jquery.js"></script>
<script src="jquery.elevatezoom.js" type="text/javascript"></script>
Elevate Zoom works best using two images, one low resolution for the visible image, and one high resolution for the zoomed image.If you only have one image available, Elevate Zoom will still work if you scale down the image, although this is not recommended as your page load time will increase ifyou are loading larger images
Please ensure your small image is proportionally scaled down from the large image.
<img id="zoom_01" src="small/image1.png" data-zoom-image="large/image1.jpg"/>
$("#img_01").elevateZoom();
responsive | false | Set to true to activate responsivenes. If you have a theme which changes size, or tablets which change orientation this is needed to be on. Possible Values: "True" , "False" |
scrollZoom | false | Set to true to activate zoom on mouse scroll. Possible Values: "True" , "False" |
imageCrossfade | false | Set to true to activate simultaneous crossfade of images on gallery change. Possible Values: "True" , "False" |
loadingIcon | false | Set to the url of the spinner icon to activate, e.g, http://www.example.com/spinner.gif. Possible Values: "True" , "False" |
easing | false | Set to true to activate easing. Possible Values: "True" , "False" |
easingType | zoomdefault | default easing type is easeOutExpo, (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b |
easingDuration | 2000 | |
lensSize | 200 | used when zoomType set to lens, when zoom type is set to window, then the lens size is auto calculated |
zoomWindowWidth | 400 | Width of the zoomWindow (Note: zoomType must be "window") |
zoomWindowHeight | 400 | Height of the zoomWindow (Note: zoomType must be "window") |
zoomWindowOffetx | 0 | x-axis offset of the zoom window |
zoomWindowOffety | 0 | y-axis offset of the zoom window |
zoomWindowPosition | 1 | Once positioned, use zoomWindowOffsetx and zoomWindowOffsety to adjustPossible values: 1-16 |
lensFadeIn | false | Set as a number e.g 200 for speed of Lens fadeIn |
lensFadeOut | false | Set as a number e.g 200 for speed of Lens fadeOut |
zoomWindowFadeIn | false | Set as a number e.g 200 for speed of Window fadeIn |
zoomWindowFadeOut | false | Set as a number e.g 200 for speed of Window fadeOut |
zoomTintFadeIn | false | Set as a number e.g 200 for speed of Tint fadeIn |
zoomTintFadeOut | false | Set as a number e.g 200 for speed of Tint fadeOut |
borderSize | 4 | Border Size of the ZoomBox - Must be set here as border taken into account for plugin calculations |
zoomLens | true | set to false to hide the Lens |
borderColour | #888 | Border Colour |
lensBorder | 1 | Width in pixels of the lens border |
lensShape | square | can also be round (note that only modern browsers support round, will default to square in older browsers) |
zoomType | window | Possible Values: Lens, Window, Inner |
containLensZoom | false | for use with the Lens Zoom Type. This makes sure the lens does not fall outside the outside of the image |
lensColour | white | colour of the lens background |
lensOpacity | 0.4 |
used in combination with lensColour to make the lens see through. When using tint, this is overrided to 0 |
lenszoom | false | |
tint | false | enable a tint overlay, other options: true |
tintColour | #333 | colour of the tint, can be #hex, word (red, blue), or rgb(x, x, x) |
tintOpacity | 0.4 | opacity of the tint |
gallery | null | This assigns a set of gallery links to the zoom image |
cursor | default | The default cursor is usually the arrow, if using a lightbox, then set the cursor to pointer so it looks clickable - Options are default, cursor, crosshair |
①按钮&lt;table&gt; &lt;tr&gt; &lt;td style="background-color:#0066cc;color:white;"&gt; &lt;span onclick="addLinkMan(this);" style="cursor: pointer;display: block;wid...
金明今天很开心,家里购置的新房就要领钥匙了,新房里有一间金明自己专用的很宽敞的房间。更让他高兴的是,妈妈昨天对他说:“你的房间需要购买哪些物品,怎么布置,你说了算,只要不超过N元钱就行”。今天一早,金明就开始做预算了,他把想买的物品分为两类:主件与附件,附件是从属于某个主件的,下表就是一些主件与附件的例子:主件 附件电脑 打印机,扫描仪书柜 图书书桌 台灯,文具...
从年轻的时候开始,我就一直对编程语言有着极为浓厚的兴趣。比起“使用计算机去干什么?”这一问题,我总是一门心思在想着“如何将自己的意图传达给计算机?”。从这个意义上说,我认为自己是个“怪人”。但是,想选择一个能让自己的工作变得轻松的编程语言,想编写一种让人用起来感到快乐的编程语言,一直是我梦寐以求的,这种迫切的心情恐怕不输于任何人。虽说是有点自卖自夸,但是Ruby确实给我带来了“快乐”...
1、需求对于支持序列化操作的类可以将不同类的不同对象以序列的形式写到文件中;可以通过读取序列化文件还原对应类的对应实例;针对对象的哪些内容进行序列化由对象来决定;2、需求示例2.1、需要序列化的对象对应的类lCNameclass CName:public CObject{public: DECLARE_SERIAL(CNam...
对于税控盘发生的维护费,按现行税法规定可全额抵减增值税税额。企业发生税控盘维护费时,如何做会计分录?税控盘维护费如何做会计分录1、发生银行扣款,拿到做账凭证时:借:管理费用贷:银行存款2、由于税控维护费的特殊性,产生的税费可以全额递减,将该部分金额冲减管理费用:借:应交税费-应交增值税-减免税额贷:管理费用《财政部、国家税务总局关于增值税税控系统专用设备和技术维护费用抵减增值税税额有关政策的通知》...
1.什么是监听器监听器也叫Listener,是servlet的监听器,可以用于监听Web应用中某些对象,信息的创建,销毁,增加,修改,删除等动作的发生,然后做出相应的响应处理。当范围对象的状态发生变化时,服务器自动调用监听器对象中的方法,常用于统计在线人数和在线用户,系统加载时进行信息初始化,统计网站的访问量等。在实际项目中,我们往往需要自定义一些事件和监听器来满足业务场景,比如在微服务...
一,首先用命令查看java所占的线程:jps -lv,第一个数字就是pid二,用命令:jmap -dump:format=b,file=xx.bin pid就可以生成对应的dump文件了三,然后用xftp下载xx.bin在本地四,最后就可以用MemoryAnalyzer进行分析...
要使用layui.layer弹出新增模态框,首先准备好模态框要显示的内容:<div id="modStaff" style="display: none;"> <div class="layui-col-lg9 layui-col-md9 layui-col-sm9 layui-col-md-offset1"> <for...
date取得分钟数$(()) 运算#execute every 5 minutesa=`date +%M`b=$(( $a % 5 ))if [ $b = 0 ]then echo "execute it"else echo "Not execute"fi 转载于:https://blog.51cto.com/liucb/1842342...
一、Element-plus简介Element plus是一套为开发者,设计师和产品经理准备的基于vue3.0的桌面端组件库。之前在vue2中都使用element-ui,而element-plus是针对vue3开发的一个ui组件库。二、基本使用安装element-plusnpm install element-plus2.1、全局引入一种引入element-plus的方式是全局引入的方式,代表的含义是所有的组件和插件都会背自动注册。import ElementPlus from 'elem
maven项目,使用POI读写2007版本Excel出错,一直不知道原因,后来发现导入的poi,和poi-ooxml版本不一致Exception in thread "Thread-4" java.lang.NoClassDefFoundError: org/apache/poi/poifs/filesystem/FileMagic at org.apache.poi.ope...
BUFFD8BWP7D5T16P96CPDLVTarea:0.55296leakage_power:65.086850 VDDleakage_power:0.004163 VPPBUFFD8BWP7D5T16P96CPDULVTarea:0.55296leakage_power:466.571500 VDDleakage_power:0.003463 VPP