简体   繁体   中英

Any script to make IE show CSS3 / HTML5 same as Firefox / Chrome?

I designed a HTML Webpage, and everything look perfect on Chrome and Firefox. But on IE9, its show very bad >_<

I wonder, do we have any script or some ways to auto set / fix those thing for IE?

我为您准备了两个,两个单词的短语...“渐进增强”和“优雅降级”

Please validate your page first. No proper doctype deceleration. Browser will render your page in QuirksMode. I think some tags also missing.

you should include the HTML 5 Doctype. When i loaded the page in IE9, it was forcing the page to Quirks mode. looks mostly ok when I change it to IE9 standards mode.

<!DOCTYPE html>

Also, you could try using the meta tag:

<meta http-equiv="X-UA-Compatible" content="IE=9" >

or

<meta http-equiv="X-UA-Compatible" content="IE=edge" >

to force the browser mode to IE9.

you may want to consider using these:

http://html5doctor.com/html-5-reset-stylesheet/

and:

http://modernizr.com/

I don't know any script to do so... But your problem may depend on what properties are you using and if they are supported by IE9. You may want to check W3C site for CSS properties support

It depends on what feature you use. For example if you use a progressbar you can emulate one with javascript. Alternatives are also called polyfill. A good link to use could be the html5 please website

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