Solve the Problem of IE compatibility mode, ie compatibility mode
The IE browser has added the compatibility mode since IE8. After enabling the mode, it will be rendered with an earlier version of IE. When you browse a webpage, the webpage is displayed, so you can add the following code in html to make IE use a Fixed rendering mode:
<Metahttp-equiv = "X-UA-Compatible" content = "IE = 8"> <! -- Rendering in IE8 mode -->
<Metahttp-equiv = "X-UA-Compatible" content = "IE = 7"> <! -- Rendering in IE7 mode -->
In another case, only the incompatible mode page in IE8 can be displayed normally, but if it is set to IE8 mode, CSS 3 will become invalid in IE9. It seems that the compatibility mode must be disabled for IE8 and IE9 respectively. What should we do? You can determine the browser version in the background. For IE8, content = "IE = 8" is output, and for IE9, content = "IE = 9" is output ". In fact, it can also be implemented simply through HTML. the HTML code is as follows:
<Metahttp-equiv = "X-UA-Compatible" content = "IE = 9; IE = 8; IE = 7; IE = EDGE">