这听起来像that问题 - IE 根据页面所在位置切换呈现模式。
太疯狂了。
看到这个答案 https://stackoverflow.com/questions/167657/will-targeting-ie8-with-conditional-comments-work#answer-168131.
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
因此,因为您是通过“网络驱动器”访问您的网站,所以 IE 将进入 IE7 模式,而 IE7 不支持inline-block
正确,因此您的网站无法正确呈现。
您可以通过将以下内容添加到您的页面来请求 IE8 以 IE8 模式呈现您的页面:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
或者,要请求 IE8 使用最新版本的渲染引擎(例如 IE9),您应该使用以下命令:
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
或者,使用镀铬框架 http://code.google.com/chrome/chromeframe/相反,如果它可用:
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />