The IF condition in CSS hack how to write

Source: Internet
Author: User
Today for you to explain the div+css if conditions hack knowledge and tutorial examples, friends can learn from our example. I hope the following case will be of some help to you.

ie CSS if condition hack-css hack

For you to explain hack knowledge and tutorial examples of if condition in div+css

Directory

CSS If hack conditional syntax

Div+css If instance

If condition hack summary

CSS If hack conditional syntax

<!--[if ie]> only IE <! [endif]-->

Only all win systems are self-identifying with IE

<!--[if IE 5.0]> only IE 5.0 <! [endif]-->

Only IE5.0 can identify

<!--[if GT ie 5.0]> only ie 5.0+ <! [endif]-->

IE5.0 shifting IE5.5 can be identified

<!--[if LT ie 6]> only ie 6-<! [endif]-->

Only IE6 recognizable

<!--[if GTE ie 6]> only ie 6/+ <! [endif]-->

IE6 and ie5.x below IE6 are recognizable

<!--[if LTE IE 7]> only IE 7/-<! [endif]-->

Only IE7 recognizable

<!--[if GTE ie 7]> only ie 7/+ <! [endif]-->

IE7 and IE6, ie5.x below IE7 are recognizable

<!--[if IE 8]> only ie 8/-<! [endif]-->

Only IE8 recognizable

2. div+css Example Tutorial

CSS instance one:

Let IE6-IE8 display different content, the DIV CSS code is as follows:

 <! DOCTYPE html>

Note: The above experiment only experiment ie6-ie8 under if HACK. More exciting please focus on the PHP Chinese web other related articles!

Related reading:

How to make icon effect with CSS3

How to make the switch effect of irregular picture using CSS3

How to use CSS3 to make a light. Display text animation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.