标签:html
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="css/lightbox.css" rel="stylesheet" /> <!-- 新 Bootstrap 核心 CSS 文件 --> <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css"> <body> <div class="container"> <div class="row"> <div class="col-sm-3"><a href="img/1.jpg" class="lightbox-2" rel="flowers" title="美女哦!"><img src="img/1.jpg" class="img-thumbnail"></a></div> <div class="col-sm-3"><a href="img/2.jpg" class="lightbox-2" rel="flowers" title="美女哦!"><img src="img/2.jpg" class="img-thumbnail"></a></div> <div class="col-sm-3"><a href="img/3.jpg" class="lightbox-2" rel="flowers" title="美女哦!"><img src="img/3.jpg" class="img-thumbnail"></a></div> <div class="col-sm-3"><a href="img/4.jpg" class="lightbox-2" rel="flowers" title="美女哦!"><img src="img/4.jpg" class="img-thumbnail"></a></div> </div> </div> <script type="text/javascript" src="js/jquery-1.9.0.js"></script> <script type="text/javascript" src="js/jquery.lightbox.js"></script> <script> $(function(){ $(".lightbox-2").lightbox({ fitToScreen: true, imageClickClose: false }); }); </script> </body> </html>
本文出自 “程序员的学习日” 博客,请务必保留此出处http://laiyicong.blog.51cto.com/10811813/1706692
标签:html
原文地址:http://laiyicong.blog.51cto.com/10811813/1706692