[更新]增加图文选择器

This commit is contained in:
Anyon 2017-05-12 19:11:49 +08:00
parent 981670fd7a
commit cc3e0de4fe

View File

@ -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 () {