在IE浏览器下执行js

var navigatorName = "Microsoft Internet Explorer";
var isIE = false;
if (navigator.appName == navigatorName) {
isIE = true;
document.getElementById('iframe1').style.height = document.body.clientHeight - 20 + "px";
}

posted @ 2016-07-21 11:18  小黄琦  阅读(590)  评论(0编辑  收藏  举报