var isIE=navigator.userAgent.toUpperCase().indexOf("MSIE")?true:false; 

var isFirefox=navigator.userAgent.toUpperCase().indexOf("Firefox")?true:false;

var isChrome = window.navigator.userAgent.indexOf("Chrome") !== -1

例:
var isIE=navigator.userAgent.toUpperCase().indexOf("MSIE")==-1?false:true;
if(isIE) document.getElementById("abc").style.display="";

相关文章:

  • 2021-10-10
  • 2021-11-23
  • 2021-11-13
  • 2021-11-13
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
猜你喜欢
  • 2021-10-24
  • 2021-11-04
  • 2021-11-13
  • 2022-02-01
  • 2018-10-09
  • 2021-11-13
相关资源
相似解决方案