`
darrenzhu
  • 浏览: 785804 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

localhost本地访问与用机器名或ip地址访问时页面显示不同

阅读更多
问题描述:
用Extjs 4.2.1 开发的web程序在chrome中访问正常,在IE8中通过localhost本地/本机访问页面显示也正常,但是通过机器名或ip地址访问时页面有点区别,滚动条部分有点问题.

原因:
IE浏览器兼容性问题。
类似问题的帖子可以参考如下页面:
http://stackoverflow.com/questions/4951127/odd-behaviour-in-web-page-when-page-uses-localhost-vs-machines-name

http://stackoverflow.com/questions/1841009/web-page-different-display-with-localhost-and-ip-address

详细原因你可以浏览如下知识页面
http://msdn.microsoft.com/en-us/library/cc288325%28VS.85%29.aspx


解决方案:
对于IE8,你可以在head标签内添加如下内容:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
2
4
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics