2012-09-07 50 views
1

我使用的isotope插件用於pinterest像盒子,唯一的問題是:如果盒子中的任何內容發生更改(並更改盒子的高度),則它們重疊。爲了避免這種情況,我試着這樣做:元素不會調整大小,雖然它應該是

$('#container').isotope({ 
    // options 
    itemSelector : '.box' 
}); 

$(".special").click(function() { 
    $(this).append("I'm a <strong>special</strong> box!"); 
    $('#container').isotope({'reLayout'}); 
}); 

..但它似乎沒有工作。

請點擊這裏看看一個例子:http://jsfiddle.net/eELmb/

回答

相關問題