我为 jquery 使用同位素插件,如果是静态 html 块,这很好用:
HTML:
<body>
<div id="target">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</body>
JS:
$('#target > *').isotope([needle options]);
但是,如果我使用“加载”将内容加载到#target,同位素会忽略它们。
JS:
$('#target').load('file',function()
{
$('#target > *').isotope([needle options]);
}
);
请帮忙,这很重要。