var _IE = (function () { var v = 3, div = document.createElement('div'), all = div.getElementsByTagName('i'); while ( div.innerHTML = '', all[0] ); return v > 4 ? v : false; }()); if (_IE && _IE < 10) { alert('ie8'); }
IE6及其以下版本可见