mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]增加图文选择器
This commit is contained in:
parent
981670fd7a
commit
cc3e0de4fe
@ -42,7 +42,7 @@
|
||||
<script>
|
||||
require(['jquery.masonry'], function (Masonry) {
|
||||
var container = document.querySelector('#news_box');
|
||||
var msnry = new Masonry(container, {itemSelector: '.news_item', columnWidth: 0});
|
||||
var msnry = new Masonry(container, {itemSelector: '.news-box', columnWidth: 0});
|
||||
msnry.layout();
|
||||
/* 事件处理 */
|
||||
$('.news-container').on('mouseenter', '.news-box', function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user