私は jquery に isotope プラグインを使用しています。これは、静的な 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]);
}
);
助けてください、それは非常に重要です。