Using <meta http-equiv=“X-UA-Compatible” content=“IE=8” /> mode in sites good practice?

前端 未结 6 1262
感动是毒
感动是毒 2020-12-10 03:48

I\'ve recently discovered the joys of adding the following into the header of sites:



        
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-10 04:18

    I have IE8 installed in a Windows 7 test environment and it renders some parts of my code like IE7 did before (an there is no content="IE7" in my meta-tags)!
    On another machine with Windows 7 + IE8, the code is rendered different, but the way I want.
    There's an interesting article at http://www.greywyvern.com/?post=313 telling that the way IE8 renders depends of the Service Pack installed on the system (the article is about XP, but mine is Windows 7 and I have the same issue).

    So now I put content="IE10" on my webpages and my website is correctly displayed in IE10, IE9 and IE8.

提交回复
热议问题