开发者

How to detect if browser is below IE8?

开发者 https://www.devze.com 2023-04-01 17:30 出处:网络
I hate IE, I only want to display an out-of-date browser notification to IE8 IE7 IE6 IE5.5 etc. users on my site :)

I hate IE, I only want to display an out-of-date browser notification to IE8 IE7 IE6 IE5.5 etc. users on my site :)

I want 开发者_JAVA百科to detect if browser version number is below IE8. I am open to Javascript, HTML, PHP, jQuery. How could I do this?


You can use this mark-up in your HTML:

<!--[if lt IE 8]>
<p>You aren't using a recent version of Internet Explorer.</p>
<![endif]-->

Reference.

0

精彩评论

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