开发者

IE 100% static div

开发者 https://www.devze.com 2023-01-26 12:27 出处:网络
Is there a way to make a 100% x 100% static div in the older crappier versions of IE?If the user is running IE6 for example, I\'d like a separate CSS file that only displays a giant black div on the 开

Is there a way to make a 100% x 100% static div in the older crappier versions of IE? If the user is running IE6 for example, I'd like a separate CSS file that only displays a giant black div on the 开发者_运维技巧screen and says something like "Your browser is garbage. You need to upgrade..." or something like that. A site that comes to mind that uses the same type of display message is http://www.wowhead.com when javascript is turned off.


Just place this on the top of your web-page, and create a custom redirect page for IE6 visitors.

<!--[if lt IE 7]>
<script>
    location.href = "http://www.yourdomain.com/blank_page_for_IE6.html";
</script>
<![endif]-->
0

精彩评论

暂无评论...
验证码 换一张
取 消