开发者

IE7 problems with displaying text in TD

I can not figure out why the text inside the TD is not displayed in IE7. I am frustrated to the core cuz it works in FF! All I am trying to do is dynamically build a table onload... Any help will开发者_如何学Python be greatly appreciated. The complete script is at pastebin


User insertRow and insertCell to add Rows and Cells
Ex:

var row = table.insertRow();
row.id= rowid;

var headerCell = row.insertCell();
headerCell.colSpan = colspan;
headerCell.className = "rightAligned";
headerCell.innerHTML = "Header Text";


use the insertRow(-1) to add a row instead, and insertCell(-1) to add a column

updated code: http://pastebin.com/mTym410P


IE needs a TBODY. Just add it as the first child of your table and then append your rows and cells to that.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜