IE not rendering CSS properly when the site is located at networkdrive

前端 未结 2 768
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-01 22:05

This is kinda weird problem we came across with my friend. We located our site at network drive and tried to open it from there. All other browsers render this page just fin

相关标签:
2条回答
  • 2020-12-01 22:46

    This sounds like that problem - where IE switches rendering modes depending on where the page is located.

    It's insane.

    See this answer.

    http://127.0.0.1/mysite/mypage.php  <-- IE8 by default (updated!)
    http://localhost/mysite/mypage.php  <-- IE8 by default (updated!)
    http://machinename/mysite/mypage.php  <-- IE7 by default
    http://192.168.100.x/mysite/mypage.php  <-- IE7 by default
    http://google.com/  <-- IE8 by default
    

    So, because you're accessing your site via "network drive", IE is going into IE7 mode, and IE7 does not support inline-block properly, hence your site does not render properly.

    You can request IE8 to render your page in IE8 mode by adding this to your page:

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

    Or, to request IE8 to use the most recent version of it's rendering engine (think IE9), you should use this:

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

    Or, to use Chrome Frame instead if it's available:

    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
    
    0 讨论(0)
  • 2020-12-01 22:56

    Use an admin account. IE may Denies access to network drive if not admin.

    0 讨论(0)
提交回复
热议问题