javascript适合移动端的响应式瀑布流插件实例演示
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript适合移动端的响应式瀑布流插件实例演示相关的知识,希望对你有一定的参考价值。
实例代码
<div class="sucaihuo-container"> <div class="demo"> <div class="grid"> <div class="grid-item"></div> <div class="grid-item"></div> <div class="grid-item" style="height: 245px;"></div> <div class="grid-item"></div> <div class="grid-item" style="height: 290px;"></div> <div class="grid-item"></div> <div class="grid-item" style="height: 140px;"></div> <div class="grid-item" style="height: 200px"></div> <div class="grid-item" style="height: 150px"></div> <div class="grid-item"></div> <div class="grid-item" style="height: 220px"></div> <div class="grid-item" style="height: 205px"></div> <div class="grid-item"></div> <div class="grid-item"></div> <div class="grid-item"></div> <div class="grid-item"></div> </div> </div> </div> <script src="/api/jq/5733e32cbe7f1/js/minigrid.js"></script> <script> (function() { minigrid(‘.grid‘, ‘.grid-item‘, 6, null, function() { var d = document.querySelector(‘.demo‘); d.style.opacity = 1; } ); window.addEventListener(‘resize‘, function() { minigrid(‘.grid‘, ‘.grid-item‘); }); })(); </script>
以上是关于javascript适合移动端的响应式瀑布流插件实例演示的主要内容,如果未能解决你的问题,请参考以下文章