ie11中的诡异问题 RRS feed

  • 问题

  • ie11中访问页面,用ip地址访问站点页面和用机器名访问站点页面,页面的呈现效果不一样,具体来说是两种情况下文字的左右和上下间距不同,用ie11查看浏览器的uerAgent字符串不一样,用ip访问时userAgent字符串是Mozilla5.0,用机器名访问时userAgent是Mozilla4.0。在ie10中是没有问题的,这样整个程序的画面都需要更改,路过的帮忙解释下,有办法让ie11用ip地址访问时,页面的效果和用机器名访问的效果一样?在线等,急!急!急!

    2013年11月7日 7:42


  • 你好,

    If the user chooses to render a site in Compatibility View (click Tools > Compatibility View Settings) then IE will send a User-Agent string that mimics Internet Explorer 7’s UA string:

        Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C)

    Maybe when you asccess the page througth localhost, ie 11 render it in compatibility view.

    For more information, you can refer here

    Hope it can help you.

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2013年11月8日 6:54
  • thank you for your answer. 

    choose the render  site in Compatibility View ,the  User-Agent string  can be " Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; Trident/7.0;.NET4.0E; .NET4.0C)" ,but the problem is not solved,the view of page is also different when visit by ip address and computer name, what I hope is solve this problem not by changing the setting of ie11 ,by changing server setting or by coding can be a better way to solve this problem.

    Expect  your reply,Thank you.

    2013年11月8日 8:39