LGallery是一款非常炫酷的js图片画廊插件。LGallery采用响应式设计,支持手机移动端,可以快速的制作图片画廊、轮播图、lightbox等。
使用方法
在页面中引入lgallery.min.css和lgallery.min.js文件。
<link rel="stylesheet" href="/path/to/lgallery.min.css">
<script src="/path/to/lgallery.min.js"></script>

HTML结构
在一个div元素中添加data-attributes属性,取值可以是:lgallery, lgparent, lgslider, lgpreview 或者 lgcarusel
<div class=example data-lgallery="img/1.jpg,img/2.jpg, img/3.jpg"></div>
初始化插件
然后通过initLG()来初始化该插件。
initLG()
LGallery图片画廊插件的github网址为:https://github.com/mopcweb/LGallery






![MBTI 16型人格职业性格测试源码PC+H5自适应完整版基于ThinkPHP框架[亲测可用]](https://www.icbot.net/upload/portal/20250429/32ccad646f32a5f4926b3b7b5ef3232a.png)















