Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中使用砖石。一切工作正常,除非项目的高度发生变化(如手风琴)砌体没有调整布局。我能做些什么来修复它?
每当调整项目大小时,您需要告诉 masonary 重新布局所有内容:
$('.ui-accordion').bind('accordionchange', function(event, ui) { $('#container').masonry(); });
$grid.on( 'shown.bs.collapse hidden.bs.collapse' , function() { $grid.masonry(); });