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