• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






。呢他

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | | | 管理

文章分类 -  differences between IE and Fire Fox

For a excellent website, I need to be appropriate for IE and FF,so I made a collection for the diff between the two. if someone is interested,you can add more. 
obj.onclick 和obj.setAttrute()方法
摘要:2者都是给对象附加上事件,但是后者只是在非ie浏览器下才起作用,所以所有的标准附加事件的表达应该是前者,obj.onclick方法。 阅读全文
posted @ 2007-01-21 11:30 在北京的湖南人 阅读(443) 评论(0) 推荐(0)
ff,ie区别---手型指针
摘要:手型指针有cursor:hand和cursor:pointer两种写法,其中cursor:hand在ff中不支持,返回错误!只要使用cursor:pointer即可,ff和ie都支持! 阅读全文
posted @ 2007-01-21 10:57 在北京的湖南人 阅读(670) 评论(0) 推荐(0)
集合对象问题
摘要:在ie下,有很多使用索引的地方你可以使用小括号来代替,而不需要使用[],但是这在ff下是不兼容。。。需要引起注意。例如: document.forms("xx")改为 document.forms["xx"] 阅读全文
posted @ 2006-09-27 16:01 在北京的湖南人 阅读(180) 评论(0) 推荐(0)
document.Form1.item()
摘要:这个方法在ff中也是不兼容的,所以你需要替换,建议为 document.Form1.getElementById() 后者ByName 都可以,还可以 document.Form1.elements["name"]; 阅读全文
posted @ 2006-09-27 15:53 在北京的湖南人 阅读(420) 评论(0) 推荐(0)
getElementByid()
摘要:这个方法也是非常常用的,但是在ff下,如果你只是对控件指定了name,而没有指定id的话,在ff中就不能取得控件的引用。 test it in fire foxCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> ... 阅读全文
posted @ 2006-09-27 15:34 在北京的湖南人 阅读(266) 评论(0) 推荐(0)
window.close()在IE和FF下的不兼容
摘要:ie ff 在js中的不同 阅读全文
posted @ 2006-09-27 15:12 在北京的湖南人 阅读(1475) 评论(0) 推荐(0)