jquery自适应屏幕图片瀑布流布局代码

maolai web前端评论298阅读模式

jquery自适应屏幕图片瀑布流布局代码演示,jquery图片瀑布流效果,jquery特效瀑布流代码下载。瀑布流式网站页面布局js代码
jquery自适应屏幕图片瀑布流布局代码
1、页面html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>jquery自适应屏幕图片瀑布流布局代码 - bokequ.com</title>
    <link rel="stylesheet" href="http://www.bokequ.com/show/demo3/css/css.css">
    <script type="text/javascript" src="http://www.bokequ.com/show/demo3/js/jquery-1.7.2.min.js"></script>
      <script type="text/javascript" src="http://www.bokequ.com/show/demo3/js/pubu.js"></script>
<style media="screen">
  /*div{
    position: fixed;
  }*/
</style>
  </head>
  <body>
<div class="container">
  <div class="box">
    <div class="content">
      <img src="http://img.bokequ.com/dongman/9afb97dagy1fws9k9mtl8j20m80zkau5.jpg" alt="" />
    </div>
  </div>
  <div class="box">
    <div class="content">
      <img src="http://img.bokequ.com/dongman/9afb97dagy1fws9kivutlj20m80zk7jh.jpg" alt="" />
    </div>
  </div>
  <div class="box">
    <div class="content">
      <img src="http://img.bokequ.com/dongman/9afb97dagy1fws9kx9funj20m80zke4b.jpg" alt="" />
    </div>
  </div>
  <div class="box">
    <div class="content">
      <img src="http://img.bokequ.com/dongman/9afb97dagy1fws9lkdk8kj20m80zkaqy.jpg" alt="" />
    </div>
  </div>

  <div class="box">
    <div class="content">
      <img src="http://img.bokequ.com/dongman/9afb97dagy1fws9m355agj20u01hc7wh.jpg" alt="" />
    </div>
  </div>
  <div class="box">
    <div class="content">
      <img src="http://img.bokequ.com/dongman/9afb97dagy1fws9mkud39j20m80zkatz.jpg" alt="" />
    </div>
  </div>
  <div class="box">
    <div class="content">
      <img src="http://img.bokequ.com/dongman/9afb97dagy1fws9mvvd9pj20m80zkkdr.jpg" alt="" />
    </div>
  </div>
  <div class="box">
    <div class="content">
      <img src="http://img.bokequ.com/dongman/9afb97dagy1fws9ndjdraj20m80zk4h2.jpg" alt="" />
    </div>
  </div>
</div>
  </body>
</html>

2、css样式

*{
  padding: 0;
  margin: 0;
}
.box{
  position: relative;
  float: left;
}
.content{
  padding: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 0 5px #ccc;
  border-radius: 5px;
}
.content img{
  width: 190px;
  height: auto;
}

瀑布流式网站页面布局js演示瀑布流布局演示
代码素材下载链接https://pan.baidu.com/s/1IrbeM0XFTxlHRS3Fdy6HXQ?pwd=6v8k 提取码: 6v8k

 
maolai
  • 本文由 maolai 发表于 2018年6月4日 19:01:10
  • 转载请务必保留本文链接:http://www.bokequ.com/479.html

发表评论