tag:forum.selfhtml.org,2005:/self colspan will nicht – SELFHTML-Forum 2005-03-18T12:44:13Z https://forum.selfhtml.org/self/2005/mar/18/colspan-will-nicht/780849#m780849 borobudur borobudur@gmx.ch 2005-03-18T11:04:07Z 2005-03-18T11:04:07Z colspan will nicht <p>Hallo, ich versuche eine tabelle via javascript aufzubauen. Beim firefox funktioniert der code aber der IE macht probleme und scheinbar beim attribut colspan. Er streckt die zellen nicht über die gewünschten spalten. Kann mir jemand weiterhelfen?</p> <p>Gruss aus genf<br> borobudur</p> <p>....<br>     var colgroup = document.createElement("colgroup");<br>     var col = document.createElement("col");<br>     col.setAttribute("width","24");<br>     colgroup.appendChild(col);<br>     var col = document.createElement("col");<br>     col.setAttribute("width","24");<br>     colgroup.appendChild(col);<br>     var col = document.createElement("col");<br>     col.setAttribute("width","24");<br>     colgroup.appendChild(col);<br>     var col = document.createElement("col");<br>     col.setAttribute("width","*");<br>     colgroup.appendChild(col);<br>     var tr = document.createElement("tr");<br>     var td = document.createElement("td");<br>     td.setAttribute("align","left");<br>     td.setAttribute("colspan","4");<br>     td.setAttribute("height","24");<br>     tr.appendChild(td);<br>     tbody.appendChild(tr);<br>     table.appendChild(tbody);<br>     document.getElementById("adminform").appendChild(table);<br>   }</p> https://forum.selfhtml.org/self/2005/mar/18/colspan-will-nicht/780850#m780850 JürgenB http://www.j-berkemeier.de 2005-03-18T12:44:13Z 2005-03-18T12:44:13Z colspan will nicht <p>Hallo borobudur,</p> <p>1. Ich finde kein appendChild(colgroup).</p> <p>2. Der IE stellt Tabellen in Verbindung mit colspan/rowspan und colgroup schon mal anders dar, als erwünscht (<a href="http://forum.de.selfhtml.org/archiv/2003/10/t60188/" rel="nofollow noopener noreferrer">http://forum.de.selfhtml.org/archiv/2003/10/t60188/</a>).</p> <p>Gruß, Jürgen</p>