简体   繁体   中英

Single JavaScript (library) to fix all IE 6 issues and make it compatible with css3

是否有任何JavaScript(库)或任何其他解决方案,我们可以通过它解决大多数IE6问题,如PNG修复,还使IE6支持CSS3属性?

No. 不。

While you can cobble together pieces of code here and there that help you get most of what you want in IE6, the problem is that none of these technologies out there are perfect (with most PNG fixes - try using transparent PNGs on a background image and change the background image by changing a class). 虽然你可以在这里和那里拼凑一些代码来帮助你在IE6中获得你想要的大部分内容,但问题是这些技术都不是完美的(大多数PNG修复 - 尝试使用透明背景图像上的PNG并通过更改类来更改背景图像)。 There may be solutions for rounded corners or shadows but they will likely be glitchy too.

Many JavaScript frameworks offer nearly complete JavaScript feature-support for IE6, but the case is not the same for CSS. Many things in advanced CSS (2 and 3) will never be possible in IE6, but have to be achieved in different ways. There is no content property, :hover only works on anchor tags, attribute-based pseudo selectors don't work.

Even technologies like GWT that compile seamlessly to JavaScript for all browsers offer conditional CSS so that you can code your own hacks or graceful degradation.

No. CSS3 support in IE6 is not going to happen. There is library available that will make IE6 more-or-less compatible with IE7:

http://code.google.com/p/ie7-js/

I'm assuming jQuery goes a long way toward resolving IE6 issues because the library tries for cross-browser compatibility and deals with CSS. At least there might not be a better option.

You might check the Test Swarm for jQuery to see where the IE6 tests are at.

Late in the game but http://css3pie.com/ should help people looking for an alternative

PIE makes Internet Explorer 6-8 capable of rendering several of the most useful CSS3 decoration features

jQuery and other popular frameworks handle many cross browser compatibility options but won't address PNG transparency, most unsupported CSS3 etc.

If you want to take it a step up though, Google Chrome Frame is an option, however this has to be installed on client computers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM