制作网页相册

<!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>

wKiom1Yu74iB_k4YAADkT7LlYRY929.jpg

你可能感兴趣的:(html)