简体   繁体   中英

Is there a javascript library to fix IE rendering bugs?

Our website looks great in all browsers except IE 6-8. We're not even using many CSS3 features. These are just plain old IE rendering bugs (like margins and padding). Before trying to apply a bunch of IE specific fixes, I was wondering if anyone knows of a javascript library that I could apply to fix a bunch of these typical bugs?

Update: Like I mentioned, we're not necessarily using any "modern" CSS3 features nor HTML5, so these are just typical IE 8 bugs where IE renders things differently than all the other browsers.

Go for excellent normalize.css reset that takes care of most of it (also used by HTML5 Boilerplate )

Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing.

As for getting support of CSS3 for browsers that don't support it, check out CSS3Pie

You don't need JavaScript; just use a CSS reset file: http://yuilibrary.com/yui/docs/cssreset/

That will work across most browsers to not only fix IE issues, but also make your site render more uniformly over different browsers.

您可能想看看这个: https//code.google.com/p/ie7-js/或者: https//code.google.com/p/html5shiv/

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