The use of CSS conditional comments in detail teaching materials _ Experience Exchange
Source: Internet
Author: User
Statement: The following content collected in the network, after the understanding of the talented, to be organized and edited, reproduced please keep the link of the WIT station, thank you!!!
Wit's note: http://blog.54caizi.com
Play Web refactoring friends believe that there is a similar distress, that is, because the browser version of the different elements of the CSS, the explanation is not the same, the wit of course also encountered the same problem, but also collected a number of solutions, the wit before two for different browser version and choose different CSS code, Friends who are interested to find out for themselves.
In fact, we can also use the conditional annotation method to achieve a similar purpose, what is conditional comments, wit is also briefly introduced here, is nothing more than a few if judgment, hehe, but these judgments are not executed in the script, but directly in the HTML code execution, the following to introduce how to use it.
Here xxx is some specific things, in this list a few out, detailed introduction of their respective meanings:
Detailed use of the method has been introduced, have to mention the point is:
Conditional comments are only supported by IE after Ie5.0/win, and are not valid for IE5 's previous browsers, but there should be few people still using the IE4 version. ^0^
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