Starting from IE 8, IE added a compatibility mode, which will render with a lower version of IE when enabled. But sometimes this will cause problems with the web page, so we usually add the following code in HTML to make IE use a fixed rendering mode: Copy code The code is as follows:<meta http-equiv="X-UA-Compatible" content="IE=8"> <!--Render in IE8 mode--> <meta http-equiv="X-UA-Compatible" content="IE=7"> <!-- Render in IE7 mode --> But I encountered a situation where the page can only be displayed normally in IE8 if the compatibility mode is not used. However, if the mode is set to IE8, CSS3 will become invalid in IE9. It seems that I need to disable compatibility mode for IE8 and IE9 respectively. What should I do? You can determine the browser version in the background. If it is IE8, output content="IE=8", and if it is IE9, output content="IE=9". But this is not possible with HTML. In fact, you can simply use the following code to achieve this: Copy code The code is as follows:<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE"> |
<<: What does it mean to add a question mark (?) after the CSS link address?
>>: The website is grayed out. Compatible code including images supports all browsers
Table of contents Styles in uni-app Summarize Sty...
Sometimes MySQL needs to use a function similar t...
Abstract: Whether at work or in an interview, opt...
JDK Installation I won't go into too much det...
This article example shares the specific code of ...
1. Unzip nginx-1.8.1.tar.gz 2. Unzip fastdfs-ngin...
Preface Recently, due to work reasons, I was work...
Say goodbye to the past Before vscode had remote ...
When the data changes, the DOM view is not update...
The insignificant flex-basis has caused a lot of ...
Install vsftpd $ sudo apt-get install vsftpd -y S...
Table of contents Scene Introduction Deep respons...
Two methods to implement Mysql remote connection ...
This article uses an example to describe how to u...
Docker takes up a lot of space. Whenever we run c...