摘要: 整理一些JavaScript的IE和火狐的兼容性解决方法,有更好的方法多多交流;1. document.form.item 问题 (1)现有问题: 现有代码中存在许多 document.formName.item("itemName") 这样的语句,不能在Firefox(火狐)下运行 (2)解决方法: 改用 document.formName.elements["elementName"] (3)其它 参见 22. 集合类对象问题 (1)现有问题: 现有代码中许多集合类对象取用时使用 (),IE 能接受,Firefox(火狐)不能。 (2)解决方法: 改 阅读全文
posted @ 2011-03-16 23:09 allexwang 阅读(449) 评论(0) 推荐(1) 编辑
摘要: 解决IE下图片作为背景时,有鼠标操作时的抖动问题方法一、css(不推荐)复制内容到剪贴板代码:1html {2filter: expression(document.execCommand("BackgroundImageCache", false, true));3}方法二、js复制内容到剪贴板代码:try{document.execCommand('BackgroundImageCache',false,true);}catch(e) {} 阅读全文
posted @ 2011-03-16 10:27 allexwang 阅读(202) 评论(0) 推荐(0) 编辑