一种判断浏览器版本的方法主要通过ie浏览器的条件注释来实现<!DOCTYPE html><!--[if IE 6]><html lang="zh-cmn-Hans"><![endif]--><!--[if ...
一种判断浏览器版本的方法
主要通过ie浏览器的条件注释来实现
<!DOCTYPE html><!--[if IE 6]><html lang="zh-cmn-Hans"><![endif]--><!--[if IE 7]><html lang="zh-cmn-Hans"><![endif]--><!--[if IE 8]><html lang="zh-cmn-Hans"><![endif]--><!--[if IE 9]><html lang="zh-cmn-Hans"><![endif]--><!--[if !IE]><!--><html lang="zh-cmn-Hans"><script> if (window.navigator.userAgent.toLowerCase().indexOf("firefox") >= 0) { document.documentElement.className += ' firefox'; } else if (window.navigator.userAgent.toUpperCase().indexOf("chrome") >= 0) { document.documentElement.className += ' chrome'; } else { if (/*@cc_on!@*/false) {//ie10 document.documentElement.className += ' ie10'; } if (document.documentMode) { if (/*@cc_on!@*/true) {//ie11 document.documentElement.className += ' ie' + document.documentMode; } } }</script><!--<![endif]-->
海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com
原标题:一种判断浏览器版本的方法
关键词:浏览器
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。