Lazy Load pluginを複数のコンテナに適用しようとしています。私はこの類似の質問を発見した:Lazy Load on MULTIPLE horizontal containers。 遅延ロードの複数のコンテナ
この
は私の試みです: http://jsfiddle.net/BAFMC/$(".p_outer_content").each(function() {
var tthis = $(this);
$(this).find('img').lazyload({
container: tthis
});
});
しかし、私は怠惰な負荷だけで三番目で最後の容器(.p_outer_content)(に適用されるということである述べた質問と同じ問題を抱えていますフィドル)。
これを解決する方法を知っている人や、他の提案がありますか?
[OK]を、私はコンテナのいずれかがスクロールされるたびlazyload機能を再適用することを試みた:EDIT
事前」内の おかげで動作します
$(".p_outer_content").each(function() {
var tthis = $(this);
$(this).find('img').lazyload({
container: tthis
});
});
$(".p_outer_content").scroll(function() {
var tthis = $(this);
$(this).find('img').lazyload({
container: tthis
});
});
、私はそれを解決する良い方法かどうかわかりません。だれもがよりよい解決策を考え出していますか?ありがとう '
バグは1.8.0で修正されています。 –
ありがとう!これを聞いてうれしいです。 – Alvaro