经过一些时间的研究,得出Netscape兼容性的结论!供大家参考!
lmh79 2003-03-03 04:33:21 兼容问题总结:
1 在低版本Netscape中,控件必须放到form中,否则不能显示
2 要对控件做显示隐含控制,需要使用间接手段,通过层的样式控制来实现 (document.object.visibility="hide";)
3 对select控件取值的时候,不能document.form.select.value ,需要document.form.select.options[document.form.select.selectedIndex].value
4 select()功能的使用,在低版本Netscape中需要先.focus()后.select()
5 ilayer的访问,替换IFrame的方案,可以动态给src,访问的时候使用document.ilayname.document.form.control.value
ilayer里面的文档访问上层元素window.document
未碰到老外总结的问题:
1 居中问题,Netscape使用<center>test</center>
2 使用图片时<img src="my image.gif">,文件名不能带空格
3 window.open的选项不能包含空格
4 radio的访问必须document.formname.radioname.item[i].checked
Netscape自身都有不兼容现象,NN4和NN6区别就很大!
NN6和IE兼容性还可以,以上问题主要针对 NN 4.7