砌体图像重叠

时间:2014-05-09 10:22:24

标签: jquery reload masonry

Check this site and click on view button at the middle of the screen

当您点击彼此重叠的视图按钮图像时。

然后,如果您重新调整浏览器的大小,它将自动设置为我们想要的。

我们尝试使用下面的视图按钮单击

重新加载
$('#menu').click(function() {
    $('.primary-content').masonry('reload'); /* not working */
    $("#cont").show();
    alert ( "abc" );
    $('#test').animate({
        height: 'toggle'        
    }, 500, function() {});
});

1 个答案:

答案 0 :(得分:0)

工作链接(问题已解决的链接)http://www.ytank.com/tourapp/swipe/demosnew/ss02.html

参考链接https://github.com/desandro/masonry/issues/211

在使用砌体方法之前需要初始化砌体。

$('.hero-masonry')
  // initialize Masonry
  .masonry()
相关问题