同位素对象列表,对象坏了

时间:2014-09-02 13:58:13

标签: javascript jquery

我的对象列表是如此初始化:

$( function() {
    var $container = $('div.hikashop_products');

    $container.isotope({
        itemSelector: '.hikashop_product',
        transformsEnabled : false,
        columnWidth: 27.3 + '%',
        layoutMode: 'masonry'
    });
});

我尝试使用此行 columnWidth解决此问题:27.3 +'%' ,但这不是解决方案。

在开始时对象是真正排序的: True product sort

如果我滚动然后我看到我的列表被打破:http://prntscr.com/4iy7j2

我在这里做错了什么?

1 个答案:

答案 0 :(得分:1)

我在这里回答了同样的问题:Masonry.js – Items not moving vertically

它与图像有关,当它们加载到页面中时。