jQuery点击图片弹出大图遮罩层

 

使用jQuery插件HoverTreeShow弹出遮罩层显示大图

效果体验:
http://hovertree.com/texiao/hovertreeshow/

在开发HoverTreeTop项目的产品展示功能过程中,因为要把产品图片的大图显示给用户看,就使用jQuery制作了一个插件:HoverTreeShow ,使用该插件可以很方便的弹出图片的大图,已经运用在项目中了,除了上面链接的示例外,HoverTreeTop项目的产品展示也是一个实例,请访问链接:http://hovertree.com/top/htpro/5dbcb599663b3397.htm

HoverTreeTop是一个ASP.NET开源项目,用于企业网站建设,里面也包含HoverTreeShow插件的源码,有需要的朋友可以下载源码:http://hovertree.com/h/bjaf/hv6cqe5n.htm

弹出层后,可以点击右上角的 X 按钮关闭,也可以双击页面关闭层。

代码如下:

复制代码
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>使用HoverTreeShow插件弹出图片大图层_何问起</title><base target="_blank" />
    <meta charset="utf-8" />
    <link href="http://hovertree.com/texiao/hovertreeshow/hovertreeshow.css" rel="stylesheet" />
    <script src="http://down.hovertree.com/jquery/jquery-1.12.1.min.js"></script>
    <style>#hovertreeshow{
    width:400px;height :400px;overflow:scroll;margin:5px auto;}
    #hovertreeshow img{max-height:100%;}
    #headhovertree{margin:5px auto;width:400px;}a{color:blue;}
    </style>
</head>
<body>
    <div id="headhovertree"><h3>使用HoverTreeShow插件弹出图片大图层</h3>
    请点击下方图片,将弹出遮罩层显示图片原图。<a href="http://hovertree.com/h/bjag/o46xlsnm.htm">说明</a> <a href="http://hovertree.com">首页</a></div>
    <div id="hovertreeshow" class="hovertreeshow">
        <img src='http://hovertree.com/hvtimg/bjafjd/hs6oi257.jpg' /><img src='http://hovertree.com/hvtimg/bjafjd/070joeh7.jpg' />
        <img src="http://hovertree.com/hvtimg/201512/o9qashmi.gif" />
    </div>
    <div style="height:600px;width:100%"></div>
    <script src="http://hovertree.com/texiao/hovertreeshow/hovertreeshow.js"></script>
</body>
</html>
复制代码

更多特效:http://www.cnblogs.com/jihua/p/webfront.html

 
标签:  jQueryHTML5JavascriptCSS

转载于:https://www.cnblogs.com/lianzhibin/p/6266905.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值