js判断浏览器是否为360极速模式,jq判断浏览器是否为谷歌浏览
2020-04-16 本文已影响0人
Stonesy
<script>
$(function () {
if (window.navigator.userAgent.indexOf('AppleWebKit') != -1) {
var isChrome = navigator.userAgent.toLowerCase().match(/chrome/) != null;
if (!isChrome) {
$('.nav li ul').css('margin-top', '12px');
}
}
})
</script>