本篇文章给大家详细分析了用jquery实现放大镜效果的方法,以及代码分享,有兴趣的学习下。
jquery写的两种放大镜效果,没有使用到插件。调理和思路清晰。不是使用面向对象方式写的,初学者较容易看懂。废话不多说,看代码。图片这里就不上传了,大家自己找下。最好是找到比例的,这样效果比较好。
@@##@@ @@##@@
@@##@@
@@##@@
@@##@@ @@##@@
css代码
*{padding: 0; margin: 0;}
#father .small{width: 50px; height: 50px; border: 2px solid #ccc; bottom: 0; position: absolute;}
#father .second{left: 70px;}
.third{left: 140px;}
#father{position: relative; top: 100px; left: 50px; height: 460px;}
#container{position: absolute; width: 400px; height: 400px;}
#container img{position: absolute; display: none;}
.shade{width: 200px; height: 200px; position: absolute; background: #000; opacity: 0.4; top: 0;
left: 0; display: none;}
.big{width: 400px; height: 400px; position: absolute; top: 100px; overflow: hidden; left: 500px; display: none;}
.big img{width: 800px; height: 800px; position: absolute; display: none;}js代码
具有完善的企业网站后台管理功能,能通过后台简单操作实现大量的信息更新。完善的系统,产品,新闻,人才和客户服务等功能更让你的企业便利于网上办公。通用的后台管理功能更方便企业的网站管理,我们更提供全面的在线技术支持。
上面是我整理给大家的,希望今后会对大家有帮助。
相关文章:









