ie7下table添加新元素的bug
来源:互联网 发布:疯狂java讲义在线阅读 编辑:程序博客网 时间:2024/05/29 07:52
有时候我们需要新创建一个新的元素
var a=document.createElement("div");
a..setAttribute("class","class");
a.setAttribute("style","width:530px");
这样看不出效果,在ie7下有时候是没有样式的,
$(a).addClass("class").css("width","530px");
这样就有效果了,猜想这里应该是需要主动触发一次,
还有在ie7下的table里面追加元素的时候
var a=document.createElement("tr");
var b_html='<td>test</td>';
<---------->
a.innerHTML=b_html;(一般这样写是没问题的,但是在ie7时候的table里面这样页面元素会出错)
$(a).html(b_html);//这样就好了 o(︶︿︶)o 唉
0 0
- ie7下table添加新元素的bug
- IE7下z-index的一个bug
- IE7下 z-index的bug
- IE7下li Bug
- IE7下li Bug
- 添加新元素
- 记录下IE7下的input标签bug
- ie6,ie7的bug
- IE7下下边距BUG
- javascript下ie7,ie8的Date Bug的解决
- javascript下ie7,ie8的Date Bug的解决 .
- javascript下ie7,ie8的Date Bug的解决
- ie7下链接文字显示不全的bug
- SWFaddress2.3在IE6或IE7下的一个bug
- Ext.ux.TabPanel 在IE7下的bug
- IE7下position的z-index Bug解决方案
- ie6和ie7下z-index bug的解决办法
- ie6和ie7下z-index bug的解决办法
- Linux设备驱动程序学习笔记13:中断的注册流程
- 机器视觉(相机、镜头、光源)全面概括——mark
- struts2和struts1的理解
- Struts2 Hello World 实例
- IOS 启动画面
- ie7下table添加新元素的bug
- Array types are now written with the brackets around the element type问题的解决方法
- 黑马程序员_javaIO编程
- linux命令之awk
- stop([clearQueue], [gotoEnd])
- Spring mvc + hibernate问题总结
- 非递归中序遍历
- PHP5.3.3+Apache2.2.16+MySQL5.1.49
- [Erlang]hello world”与<<”hello world”>>详解(2)