我在IE6里面,看到生成的CHECKBOX错误,求解答!
ztree吧
全部回复
仅看楼主
level 1
<DIV class=tree id=tree jQuery
13112361790
15="24">
<LI class=tree-node id=tree_1>
<BUTTON class=switch_root_open id=tree_1_switch title="" onfocus=this.blur(); jQuery
13112361790
15="25">
</BUTTON>
<BUTTON class="chk checkbox_true_part" id=tree_1_check style="BACKGROUND-IMAGE: none" onfocus=this.blur(); jQuery
13112361790
15="28">
</BUTTON>
<A id=tree_1_a onclick="" target=_blank jQuery
13112361790
15="26">
<BUTTON class=ico_open id=tree_1_ico title="" style="BACKGROUND: url(themes/default/images/service/security/module.gif) no-repeat 0px 0px" onfocus=this.blur(); jQuery
13112361790
15="27"></BUTTON>
<SPAN id=tree_1_span>基站物业管理系统</SPAN></A>
可以看到和FF,CHROME下面的HTML代码,CHECKBOX多了个style="BACKGROUND-IMAGE: none"
如果去掉这个,就可以单选了。但是为什么在IE6下面会出现这个呢?
我是用2.5版本的
江湖救急!!!
2011年07月21日 08点07分 1
level 11
请直接换成 v2.6.01吧,是完全向下兼容的,直接替换js即可
2011年07月21日 10点07分 2
level 1
就像这里显示的。。。好像换了最新的也不行
2011年07月22日 01点07分 3
level 1

现在在IE6里面,生成的树,tree_数字_check节点的,都会有这个style="backgroud-img:none;"属性~~[揉脸]纠结啊
2011年07月22日 01点07分 4
level 11
哦,你是不是使用了自定义功能的图标?? 请告诉我你是如何将更换你的图标的?
2011年07月22日 01点07分 5
level 11
另外,你看zTree标准的Demo是否有这种问题呢?
2011年07月22日 01点07分 6
level 1
怀疑是弹出框和插件冲突了,刚才测试过,如果不用弹出框,可以在IE6下显示=。=
现在的布局如下,在IE6下面就出错了,这是火狐测试的,IE6无缘无故就在CHECKBOX的节点添加了background-image属性了...
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tbody><tr><!-- 这是lhcore弹出框 -->
<td id="lhgdg_content_tree" style="background-color: rgb(255, 255, 255); position: relative; height: 325px;"><div id="lhgdg_inbox_tree" class="lhgdg_inbox" style=""><!-- 这是ZTREE -->
<div id="tree" class="tree" style=""><li id="tree_1" class="tree-node"><button id="tree_1_switch" class="switch_root_open" onfocus="this.blur();" title="" type="button"></button><button id="tree_1_check" class="chk checkbox_true_part" onfocus="this.blur();" type="BUTTON"></button><a id="tree_1_a" onclick="" target="_blank"><ul id="tree_1_ul" style="display: block;"></li></div><!-- zTree结束 -->
</div><!-- 弹出框的加载页面,加载完后会隐藏 -->
<div id="lhgdg_load_tree" class="lhgdg_load" style="line-height: 325px; display: none;"></td></tr><tr></tbody></table>
2011年07月22日 03点07分 7
level 1
自定义图标,是有的,但是放到弹出框外就没事了,奇怪啊。。。555555
2011年07月22日 03点07分 8
level 11
如果你放到弹出框外就没事儿,估计是你的css影响的,父级css 干扰了zTree的样式,你可以用调试工具查找一下。
2011年07月22日 03点07分 9
1