MiniMasonry.js是一个轻量级(~ 3 kb) JavaScript库,可以创建一个响应不规则网格布局,类似瀑布流的现代网页设计的网格布局。默认调用方式var myLayout = new MiniMasonry({ container: '.default' });定义宽度var myLayout = new MiniMasonry({ container: '.default', baseWidth: 255, });网格间隔var myLayout = new MiniMasonry({ container: '.default', gutter: 10, ultimateGutter: 5 });刷新布局myLayout.layout();
preview Points Download 6毛Download Share Download
未经允许不得转载: ICode联盟 » Plugin Special Effects » Masonry布局样式插件MiniMasonry.js