【发布时间】:2011-05-16 18:28:06
【问题描述】:
两个问题,大家好:
1) 如何打开和关闭Isotope?
2) 如何切换布局模式?也就是说,我该怎么做:
$('.content').isotope({ itemSelector : '.hentry',
layoutMode : 'cellsByRow',
cellsByRow : { columnWidth : 240, rowHeight : 360 } });
到这里:
$('.content').isotope({ itemSelector : '.hentry',
layoutMode : 'masonry'});
用一个简单的点击开关?有什么想法吗?
谢谢!
【问题讨论】:
标签: javascript jquery toggle jquery-masonry