我正在构建一个页面,其中有由同位素统治的块,我想插入一个分隔符。这是我的例子:
<div id="container_iso">
<div class="block col1"></div>
<div class="block col2"></div>
<div class="block col1"></div>
<div class="block col1"></div>
<div class="block col1"></div>
<div class="block col1"></div>
<div class="block col1"></div>
<div class="separator"></div>
<div class="block col1"></div>
<div class="block col1"></div>
<div class="block col1"></div>
<div class="block col1"></div>
<div class="block col1"></div>
<div class="block col1"></div>
<div class="separator"></div>
</div>
<style>
.container_iso{max-width:999px;}
.block{}
.col1{width:33%;min-width: 333px;}
.col2{width:auto;min-width: 333px;max-width: 666px;}
.separator{width:100%;}
</style>
我如何告诉 Isotope 不要在我的“分隔符”div 上工作。那是我的js:
$('.container_iso').isotope({
itemSelector : '.block',
columnWidth : 333,
});
谢谢 !