<br />Conditional comments are a feature unique to IE that can perform separate XHTML code processing on IE series products. Note that it is mainly for XHTML, not CSS. Conditional comments are very powerful and can be used to make true and false judgments, for example: Program Code <!--[if IE]>This content is only visible to IE<![endif]--> <!--[if IE 6.0]>This content is only visible to IE6.0<![endif]--> Conditional comments can be used by IE to determine the version of the browser and display the content if the conditions are met. IE5.0 to 7.0 all support the comment function, and the version number is accurate to 4 decimal places: Program Code <!--[if IE 6.1000]>This content is only visible in IE6.1<![endif]--> IE conditional comments also support the exclamation mark non-operation: Program Code <!--[if !IE 6.0]>This content is visible except for IE6.0 version<![endif]--> And it supports prefixes to determine higher or lower versions: Program Code <!--[if gt IE 5.0]>This content is only visible in IE5.0 and above<![endif]--> The gt here stands for greater than, which means versions above the current condition version, but not including the current version. There are several other prefixes: lt means less than the version below the current condition version, excluding the current version. gte means greeter than or equal to the current version and including the current version. lte means less than or equal to the current version and includes the current version. |
<<: How to modify the contents of an existing Docker container
>>: Detailed explanation of MySQL sql_mode query and setting
Before reading this article, I hope you have a ba...
Sophie Hardach Clyde Quay Wharf 37 East Soapbox Rx...
Today, in the practice of vue3+vite project, when...
When making a new version of the configuration in...
Preface Now the operating system used by my compa...
let Utils = { /** * Is it the year of death? * @r...
This article uses an example to describe how to r...
Table of contents accomplish: Summarize: Not much...
Perhaps when I name this article like this, someon...
Table of contents Preface Standard sfc writing me...
Step 1: Confirm the architecture of your system d...
Read-only and disabled attributes in forms 1. Rea...
What is high concurrency? The default Linux kerne...
Syntax format: row_number() over(partition by gro...
1. Background In our daily website maintenance, w...