时间:2021-07-01 10:21:17 帮助过:4人阅读
$E({berviary:"currentPic",expand:{id:"expand",style:{}},clip:{width:"50px",height:"50px"},opacity:"0.2"});
html代码:
代码如下:
<div>
<div class="img_warp" id="img_warp">
<img src="1.jpg" alt="" class="current" id="currentPic" />
</div>
<div class="expand" id="expand" style="border: 1px solid #555; width:400px; height:400px;margin:-200px auto 0 auto; overflow:hidden;"></div>
</div>
演示效果:
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
效果2:
调用的js代码:
代码如下:
$E({berviary:"currentPic",clip:{width:"100px",height:"100px"},opacity:"0.4"});
html代码:
代码如下:
<div>
<div class="img_warp" id="img_warp">
<img src="1.jpg" alt="" class="current" id="currentPic" />
</div>
</div>
演示效果:
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]