Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the solutions for making the website support the older versions of IE6, 7, 8 and 9 browsers?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report