Thread IE Darstellung: Keine <table> im <div>? (6 answers)
Opened by Gast at 2004-06-24 17:47

Gast Gast
 2004-06-24 17:47
#25806 #25806
Ich blende in einer Tabelle Detailinfos mit folgendem JS ein und aus:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
function toggle_det(elementname)
{
if (document.getElementById(elementname).style.visibility == "visible" )
{
    document.getElementById(elementname).style.visibility = "hidden";
    document.getElementById(elementname).style.position = "absolute";
} else {
    document.getElementById(elementname).style.visibility = "visible";
    document.getElementById(elementname).style.position = "relative";
};
}

Das Snippet funktioniert problemlos (Danke an [E|B] an dieser Stelle). Ich blende verschiedene divs ein und aus. Bsp.:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  <div id="id<TMPL_VAR NAME="MID">" class="detail">
   <strong>Allgemeine Daten</strong><br />
    Geburtsdatum: <TMPL_VAR NAME="Geburtsdatum"><br />
    Eintritt: <TMPL_VAR NAME="Eintritt"><br />
    Austritt: <TMPL_VAR NAME="Austritt"><br />
    Funktion: <TMPL_VAR NAME="Funktion"><br />
    Ausbildung: <TMPL_VAR NAME="Ausbildung"><br />
    Fachrichtung: <TMPL_VAR NAME="Fachrichtung"><br />
   <br />
   <strong>Privatadresse</strong><br />
   Strasse:<TMPL_VAR NAME="Strasse"><br />
   Wohnort:<TMPL_VAR NAME="PLZ"> <TMPL_VAR NAME="Wohnort"><br />
   <br />
   <strong>Aktienanzahl:</strong> <TMPL_VAR NAME="Aktienanzahl"><br />
 </div>

Wenn ich nun hier eine table einsetze um die Felder sauber darzustellen bekomme ich im IE nur einen weißen Block statt einer Tabelle. Im Firefox geht es hingegen problemlos.

Hat von euch jemand einen Vorschlag?

Gruss,
Ronnie

View full thread IE Darstellung: Keine <table> im <div>?