摘要: ie6-ie8可使用可以直接用obj.style.top=100; 但在FireFox和ie9中必须加上单位,变成obj.style.top=100+'px'; style.left同理。 浏览器的判断:window.navigator.userAgent.indexOf("IE") == -1 // 非IE浏览器 FireFox,Chrome FireFox 没有onmouseover和onmouseout,onclick事件,他们的写法为: if (window.navigator.userAgent.indexOf("IE") == 阅读全文
posted @ 2013-07-18 15:37 叶知秋红 阅读(375) 评论(0) 推荐(0) 编辑