常用兼容fire fox的解决办法

一.js不兼容:
1.event不兼容,必须通过参数传递过来:

function test(event){

//兼容fire fox

var event = event || window.event;

}

2.returnValue不兼容:

//兼容fire fox
     if(window.event){
      event.returnValue=false; 
     }else{
      event.preventDefault();
     }

 

二.css不兼容:

1.hand不兼容:

使用通用的:pointer

 

                                                                    知识在于累积,累积的多了就会了。

                                                                                               --------累积

相关文章:

  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-12-02
  • 2022-12-23
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案