隐藏ie6用户的CSS和HTML?

use*_*856 2 html javascript css jquery internet-explorer

我正在尝试强制我的ie6用户在查看我的网站时升级到现代浏览器.因为修改一切为ie6工作太费时间了.由于一切看起来都很糟糕,我宁愿隐藏整个CSS + HTML,只显示一个弹出式浏览器.我的问题是,如果用户使用ie6,如何设置所有元素不显示?

谢谢

Dar*_*ren 5

<!--[if IE 6]>
    Special instructions for IE 6 here
<![endif]-->
Run Code Online (Sandbox Code Playgroud)

例:

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

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