javascript - 对 ie6 用户隐藏 CSS 和 HTML?

标签 javascript jquery html css internet-explorer

我试图强制我的 ie6 用户在查看我的网站时升级到现代浏览器。因为修改所有内容以适用于 ie6 太耗时了。由于一切看起来都损坏了,我宁愿隐藏整个 CSS + HTML,只显示一个弹出浏览器。我的问题是,如果用户使用 ie6,如何将所有元素设置为不显示?

谢谢

最佳答案

<!--[if IE 6]>
    Special instructions for IE 6 here
<![endif]-->

示例:

<!--[if IE 6]>
    <style type="text/css">
         #browserWarning { display:block; }
         /* hide content here */
     </style>
<![endif]-->

http://www.quirksmode.org/css/condcom.html

关于javascript - 对 ie6 用户隐藏 CSS 和 HTML?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14898538/

相关文章:

javascript - 如何从 SP 检索的函数返回值?

javascript - 不工作 : jquery custom scrollbar please help?

jQuery UI - 溢出 y 中的可拖动项目 :scroll container

javascript - 如何触发tab键按钮事件?

javascript - 当 ng-show ="true"时我的元素没有出现?

javascript - stopPropagation 不适用于嵌套 href 标记

html - 按钮在 Google Chrome (MAC) 上看起来不同

javascript - 如何多次将新行 append 到表中?

javascript - 在Smarty中使用php no captcha recaptcha代码

javascript - jquery 窗口滚动事件不能正常工作与 overflow-x 隐藏