js判定IE瀏覽器版本。

if (navigator.appName == "Microsoft Internet Explorer") { if (navigator.appVersion.match(/6./i) == '6.') { height = 32; } if (navigator.appVersion.match(/7./i) == '7.') { height = 30; } if (navigator.appVersion.match(/8./i) == '8.') { height = 30; } }

posted @ 2011-11-23 17:55  Lester Programming  Views(174)  Comments(0Edit  收藏  举报