📜 ⬆️ ⬇️

IE5 + and CSS3 - there is a way to make friends!

I am sure that there will be people on Habré who already know about this wonderful way to make the “hateful” IE understand things like min-width and :: after . But personally, I did not know about this method, and experienced real delight when I came across a very elegant and effective solution to this problem in my opinion.

It is enough to fasten a relatively small (no more than 40 kB) js-script to your page, and (voila!) Css-styles that were previously not perceived by the “donkey” begin to work! You can forget about the css-hacks and almost do not pervert, reaching cross-browser compatibility. It was also surprising that IE with such a “crutch” began to run faster than Firefox, i.e. it is more correct to follow CSS3 standards (tested the pseudo class nth-child () ).

And by the way, it's not all buns :). The script also “fixes” some non-CSS-related issues (such as, for example, the lack of support in the IE png-format).

Many thanks to the author (Dean Edwards) for such a wonderful tool. You can try and download the script on the official page of the project .
')
By the way, the author offers the following way to connect the script (note the src ):

<!--[if lt IE 8]>
<script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
<![endif]-->

Source: https://habr.com/ru/post/43676/


All Articles