Home >Web Front-end >HTML Tutorial >How to use the HTML Hack tag of IE browser

How to use the HTML Hack tag of IE browser

php中世界最好的语言
php中世界最好的语言Original
2018-01-25 11:22:401341browse

This time I will bring you how to use the HTML Hack tag of IE browser, and what are the precautions for using the HTML Hack tag of IE browser. The following is a practical case, let's take a look.

<!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]-->
<!--[if IE]> 所有的IE可识别 <![endif]-->
<!--[if IE 5.0]> 只有IE5.0可以识别 <![endif]-->  
<!--[if IE 5]> 仅IE5.0与IE5.5可以识别 <![endif]-->
<!--[if gt IE 5.0]> IE5.0以上版本都可以识别 <![endif]-->  
<!--[if lt IE 6]> IE6以下版本可识别 <![endif]-->
<!--[if IE 6]>this is ie6<![endif]-->
<!--[if gt IE 6]> IE6以上版本可识别 <![endif]-->  
<!--[if lt IE 7]> IE7以下版本可识别 <![endif]-->  
<!--[if IE 7]>this is ie7<![endif]--> 
<!--[if gt IE 7]> IE7以上版本可识别 <![endif]--> 
<!--[if lt IE 8]> IE8以下版本可识别 <![endif]-->  
<!--[if IE 8]>this is ie8<![endif]--> 
<!--[if gt IE 8]> IE8以上版本可识别 <![endif]--> 
<!--[if lt IE 9]> IE9以下版本可识别 <![endif]--> 
<!--[if IE 9]>this is ie9<![endif]-->

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

How to use title tags and paragraph tags in XHTML

Horizontal lines in HTML How to use annotations and code comments

How to write flexible, stable, high-quality HTML and CSS code

The above is the detailed content of How to use the HTML Hack tag of IE browser. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn