Home > Article > Web Front-end > 3 solutions for normal running of HTML5 CSS3 websites in lower versions of IE_Experience exchange
If we follow the lowest standards when developing, for example, if we don’t use any features that IE6 does not support, then there is no need to write this article; but I think this situation is very rare, and more development is done in modern browsers. Use the features they support and perform certain downgrades on early browsers. This is the so-called "progressive enhancement" and is the focus of this article. Through the following method, I hope that the website can miraculously run better on lower versions of IE browsers!
htmlshiv.js
Remy's HTML5shiv uses JavaScript to create HTML5 elements (such as main, header, footer, etc.). Elements created with JavaScript are styleable to some extent. We could spend a lot of time thinking about how this works, but who cares? This strategy is still a must on all product websites.
Then we can write like this in the css file:
Although IE browser is catching up with its competitors, the new version of IE also has very big changes, and it is hoped to use the new IE to reshape the network experience. But the old version of IE is still relatively popular in China. The good news is that these resources work well on all modern browsers and don’t cost much!