JS的: 1. 一般對象,,獲取時必須使用 document.getElementById("itemId") 2. form對象,,F(xiàn)irefox不認(rèn)可 document.forms("formName") 需使用下標(biāo) document.forms["formID"] 注意集合類都用下標(biāo)獲取,,而且必須使用ID,,另一種方法是 var f = document.forms["formID"]; var o = f. itemId; 3. frame對象,window.top.frameName(注意這里是Name) 4. parentElement也是不兼容的,,必須用 parentNode 比如 obj.parentNode.attributes.getNamedItem("name").nodeValue CSS的: 三句代碼區(qū)別Firefox,,IE7,IE6 background:orange;*background:green !important;*background:blue; Firefox orange(不認(rèn)*) IE7 green(全認(rèn),,important優(yōu)先) IE6 blue(不認(rèn)important,,orange與blue取后者) |
|