0

我正在使用此代码来阻止使用 IE6 的用户访问该站点。

http://code.google.com/p/ie6-upgrade-warning/

我想让用户选择关闭警告并继续浏览网站而不升级他们的浏览器。

有没有办法做到这一点?

4

1 回答 1

2

使用 Microsoft 的横幅:http ://www.ie6countdown.com/join-us.aspx您可以使用以下代码添加关闭按钮:

<!--[if lt IE 7]> <div id="ie6banner" style='clear: both; height: 59px; padding:0 0 0 15px; position: relative;'> <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /></a><a onClick="document.getElementById('ie6banner').style.display = 'none'; this.style.display = 'none';"</div> <![endif]-->
于 2013-01-09T18:43:31.033 回答