jqueryslideToggleをFirefoxで動作させました。それが下にスライドするとき、パフォーマンスがどういうわけかびくびくするので、それは完璧ではありません。私はさまざまな回避策を試しましたが、誰もその権利を助けませんでした。
したがって、最初の質問は、私のコードでこの小さなジャンプを引き起こす可能性があるものです。
そして、より大きな問題はIEでの表示です。IE6およびIE7。非表示のdivは、初期ポーズのIEでは非表示になりません。そして、スライドも奇妙に振る舞います。
誰かが私をこのshから救ってくれることを願っています......
Firefoxで私のサイトにアクセスしてください。
http://www.haus-plan.de/_01_Hausplan/
確認してからIE6&7と比較してください。
ソースコードには、firefoxまたはfirebugからアクセスできます。
どなたでもお役に立てれば幸いです。
ここに私のjqueryコード:
$(document).ready(function(){
// Get height of all des before hide() occurs. Store height in heightArray, indexed based on the de's position.
heightArray = new Array();
$("div.d_show_hide #de").each(function(i) {
theHeight = $(this).height();
heightArray[i] = theHeight;
});
// Hide all des
$("div.d_show_hide #de").hide();
// When a tt is clicked,
$("div.d_show_hide .tt").click(function () {
// Based on the tt's position in the div, retrieve a height from heightArray, and re-assign that height to the sibling de.
$(this).next("#de").css({height: heightArray[$("div.d_show_hide .tt").index(this)]});
// Toggle the divideVisibility of the de directly after the clicked de
$(this).next("#de").slideToggle("slow");
});
});