开发者

IE6 friendly reminder

开发者 https://www.devze.com 2023-01-31 07:00 出处:网络
I remember a while back I came across a Javascript that replace a webpage with a friendly message when one\'s browsing in IE6. The message mainly says IE6 is not suitable for browsing this website alo

I remember a while back I came across a Javascript that replace a webpage with a friendly message when one's browsing in IE6. The message mainly says IE6 is not suitable for browsing this website along with links to the latest Firefox, Safari and Chrome download. I can't remember the site or the keyw开发者_JAVA百科ord that I google for. Anybody has seen something similar?


There are several. Check out:

IE6 Update Warning: 7 Ways to Tell Your Site Visitors to Upgrade


I don't know any site in particular (although I thought Google did this actually). However, if you're trying to reproduce the same effect on your site, what you want to do is use conditional comments:

http://reference.sitepoint.com/css/conditionalcomments

The short version is:

<!--[if lt IE 7 ]>
  <p>Only less than IE 7 will see this</p>
<![endif]-->
0

精彩评论

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

关注公众号