在TD中显示文本时出现IE7问题 [英] IE7 problems with displaying text in TD

查看:145
本文介绍了在TD中显示文本时出现IE7问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法弄清楚为什么TD内的文本没有显示在IE7中。我感到沮丧的核心cuz它在FF工作!我所要做的就是动态构建一个表onload ...任何帮助将不胜感激。
完整的脚本位于 pastebin

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 be greatly appreciated. The complete script is at pastebin

推荐答案

用户 insertRow insertCell 添加行和单元格
例如:

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";

这篇关于在TD中显示文本时出现IE7问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆