Я получил мой jQuery SlideToggle, работающий на Firefox.
Ладно, это не идеально, потому что когда он падает, производительность как-то взволнована.
Я пробовал разные обходные пути, но никто не помог это правильно.
Итак, первый вопрос: что может вызвать эту небольшую скачок в моем коде.
И тогда большая проблема - отображение в IE. IE6 и IE7.
Скрытые div не скрыты в IE в начальной позе.
И скольжение тоже действует странно.
Я надеюсь, что кто-то может спасти меня от этого дерьма ......
Просто зайдите на мой сайт с 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");
});
});