
图片列表html代码
<div class="container">
<div class="item">
<a href='https://jy.tp.yuanmeng.life/js/180.html' target='_blank'> <img src='images/1.jpg' alt='php整理常用时间戳和日期' width="220" height="200" /> </a>
</div>
<div class="item">
<a href='https://jy.tp.yuanmeng.life/js/181.html' target='_blank'> <img src='images/2.jpg' alt='PHP Curl模拟POST和GET传参方式' width="220" height="200" /> </a>
</div>
</div> 引入并调用jquery.row-grid.js图片自适应插件
<script src="jquery.row-grid.js"></script> $(".container").rowGrid({
itemSelector: ".item",
minMargin: 10,
maxMargin: 25,
firstItemClass: "first-item"
}); jquery.row-grid.jsAPI教程
参数 描述 默认值 minMargin 最小间距 - maxMargin 最大间距 - resize 是否自动调整大小 true lastRowClass 最后一排样式 last-row firstItemClass 第一个样式 -*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
