table.insertRow() firefox和IE下的兼容问题
2010-08-26 10:30
513 查看
最近做了个Struts2.0的文章发布系统,使用dwr的框架,没想到在firefox下的兼容问题却不好,所以自己网上找了下才知道如何解决,本身我对js也不熟悉,web要学的东西还真多,哎。
table.insertRow()在IE下没问题 但在firefox下就得改为table.insertRow(-1)
同样其相应的insertCell()也要改为insertCell(-1)
http://blog.chinaunix.net/u2/65552/showart_1211865.html
table.insertRow()在IE下没问题 但在firefox下就得改为table.insertRow(-1)
同样其相应的insertCell()也要改为insertCell(-1)
var newTh = table . insertRow ( - 1) ; newTh. style . backgroundColor = "#C8ECEC" ; newTh. align = "center" ; //表头TD var newTh1 = newTh. insertCell ( - 1) ; var newTh2 = newTh. insertCell ( - 1) ; var newTh3 = newTh. insertCell ( - 1) ; var newTh4 = newTh. insertCell ( - 1) ;
http://blog.chinaunix.net/u2/65552/showart_1211865.html
相关文章推荐
- insertRow() firefox和IE下的兼容问题 览器JavaScript时要注意的问题
- table-layout:fixed 属性的解说(文字强制换行)IE与firefox兼容问题
- div浮动问题下降IE与firefox兼容(我在网上找的,很实用的)
- 解决IE、edge、firefox、chrome浏览器互相的兼容问题 bootstrap
- IE与FireFox的JavaScript兼容问题解决办法
- IE和FireFox浏览器兼容问题
- JavaScript的常见兼容问题及相关解决方法(chrome/IE/firefox)
- 一种颇为取巧,但同时兼容ie和firefox的,防止table被撑大的,并且自适应屏幕宽度的方法
- PHP间隔输出显示IE和Firefox不兼容的问题
- IE与firefox兼容问题
- CSS 设计中firefox IE Chrome兼容问题
- [转]web标准常见问题大全 让FireFox与IE兼容
- 常见浏览器兼容问题及相关解决方法(chrome/IE/firefox)
- eoiioe IE 和 firefox js 兼容问题
- DIV+CSS布局在IE和firefox中常见不兼容问题及解决方法
- [置顶] IE与FireFox的JavaScript兼容问题
- JavaScript在IE和Firefox(火狐)的不兼容问题解决
- window.location.reload()--解决JS页面跳转ie,firefox,opera不兼容问题
- 一个仿Windows UI的html table,兼容IE和firefox
- IE与Firefox的CSS兼容问题整理