What are the solutions for making the website support the older versions of IE6, 7, 8 and 9 browsers?
This article mainly explains "what are the solutions to make the website support the old versions of IE6, 7, 8, 9 browsers". The content in the article is simple and clear, and it is easy to learn and understand. please follow the editor's train of thought to study and learn "what are the solutions to let the website support the old browsers of IE6, 7, 8, 9"?
Htmlshiv.js
Remy's HTML5shiv creates HTML5 elements (such as main, header, footer, etc.) through JavaScript. To some extent, elements created through JavaScript are styleable (styleable). We can spend a lot of time thinking about how it works, but who cares? This strategy is still required on all product websites.
The code is as follows:
Selectivizr.js
Selectivizr.js is an incredible resource for populating unsupported CSS selectors and attributes, including the important last-child. In a recent redesign, I embedded selectivizr and didn't miss any details on older IE browsers. Here is my implementation code:
The code is as follows:
Modern projects are absolutely necessary. It is only loaded in old IE.
Conditional Comments
You must have seen the most corny situation below. But ugly or not, the code actually works exactly as expected:
The code is as follows:
This code snippet does not require or wait for JavaScript, nor does it require a heavyweight JavaScript library. The styles class you defined takes effect immediately and there is no splash screen yet.
Although Internet Explorer is catching up with its competitors, the old IE browser is still popular, especially in developing countries. The good news is that these resources work well on all modern browsers, and at a low cost!
Thank you for your reading, the above is "let the site support the old version of IE6, 7, 8, 9 browser solutions" content, after the study of this article, I believe that you let the site support the old version of IE6, 7, 8, 9 browser solutions have a deeper understanding of this problem, the specific use of the need for you to practice and verify. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!