真是晕,弄了一天,在IE下可以轻易的实现鼠标拖动层,在Firefox却动不了,百度了一下才知道Firefox下捕获鼠标移动跟IE的不同,但最后还是不行,使用window.onmousemove = func;后仅在点击那刻触发了事件,之后无论鼠标怎样移动也不会再触发,故层也移动不了。此问题放下,暂时不做支持Firefox就是了。

参考资料:
http://hi.baidu.com/gookings/blog/item/31fe9054a169381f3a29359d.html
http://www.zeali.net/blog/entry.php?id=12

(2007-7-27)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
猜你喜欢
  • 2022-12-23
  • 2021-12-25
  • 2021-12-20
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案