流式列表

流式加载

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

<section id="blog-main">
<div>
<div class="row section-content">
<div>

<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 blog-main-text-pic">
<div>
<div>
<img src="assets/img/blog/blog-1.jpg" alt="img" width="100%">
</div>
<div>
<div class="blog-main-link deep-black mt20">
<h2><a href="#">Lorem ipsum dolor sit amet consectetur adipisicing elit sed</a></h2>
</div>
<div class="blog-read-more mt15 text-capitalize">
<a href="#">read more<span></span></a>
</div>
</div>
</div>
</div>

<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 blog-main-text-pic">
<div>
<div>
<img src="assets/img/blog/blog-2.jpg" alt="img" width="100%">
</div>
<div>
<div class="blog-main-link deep-black mt20">
<h2><a href="#">Lorem ipsum dolor sit amet consectetur adipisicing elit sed</a></h2>
</div>
</div>
</div>
</div>

<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 blog-main-text-pic">
<div>
<div>
<img src="assets/img/blog/blog-4.jpg" alt="img" width="100%">
</div>
<div>
<div class="blog-main-link deep-black mt20">
<h2><a href="#">Lorem ipsum dolor sit amet consectetur adipisicing elit sed</a></h2>
</div>
</div>
</div>
</div>

<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 blog-main-text-pic">
<div>
<div>
<img src="assets/img/blog/blog-6.jpg" alt="img" width="100%">
</div>
<div>
<div class="blog-main-link deep-black mt20">
<h2><a href="#">Lorem ipsum dolor sit amet consectetur adipisicing elit sed</a></h2>
</div>
</div>
</div>
</div>

<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 blog-main-text-pic">
<div>
<div>
<img src="assets/img/blog/blog-2.jpg" alt="img" width="100%">
</div>
<div>
<div class="blog-main-link deep-black mt20">
<h2><a href="#">Lorem ipsum dolor sit amet consectetur adipisicing elit sed</a></h2>
</div>
</div>
</div>
</div>

<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 blog-main-text-pic">
<div>
<div>
<img src="assets/img/blog/blog-5.jpg" alt="img" width="100%">
</div>
<div>
<div class="blog-main-link deep-black mt20">
<h2><a href="#">Lorem ipsum dolor sit amet consectetur adipisicing elit sed</a></h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script  src="assets/js/masonry.pkgd.min.js"></script>
<script  src="assets/js/masonry-docs.min.js"></script>
<script>
(function (){
$('.blog-main-content').masonry({
  // options
  itemSelector: '.blog-main-text-pic',
  //columnWidth: 200,
});
})();
</script>
</body>
</html>


Comments 0

0.169748s