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 Overview Code Implementation Su...
This article mainly introduces common strategies ...
Table of contents 1. Demand Method 1 Method 2 Met...
I recently installed Ubuntu 20.04 and found that ...
This article introduces blue-green deployment and...
1. Create a new configuration file docker_nginx.c...
Let's take a look at the dynamic splicing of ...
The server reports an error 502 when synchronizin...
Remove the dotted box on the link Copy code The co...
MySQL 5.7.20 zip installation, the specific conte...
How to find slow SQL statements in MySQL? This ma...
Copy code The code is as follows: height:auto !im...
My page today also had garbled characters, so I s...
As shown below: Copy the remote server's file...
Preface BINARY and VARBINARY are somewhat similar...