IIS6 和 IE8 无法正确加载 ASP.NET MVC 站点
这很奇怪,我希望我能正确解释它。
当我使用 VS2008 进行本地调试时,IE8 看起来像 FF 和 Chrome(减去明显的部分)。效果很好,我很高兴。
当我将 IE8 与 IIS6 框 (Win2003) 或 Cassini 一起使用时,按钮未对齐,出现 javascript 错误,并且出现其他一些 CSS 异常:表格单元格缺少彩色边框、div 元素的尺寸相差 2-3 像素。
如果有人遇到过这个,请告诉我 - 这让我完全困惑
This is odd, and I hope I explain it correctly.
When I debug locally with VS2008, IE8 looks like FF and Chrome (minus the obvious). It works well, and I'm happy.
When I use IE8 with our IIS6 box (Win2003) or Cassini, buttons aren't aligned, javascript errors occur, and some other CSS anomolies occur: Table cells missing colored borders, div elements having different dimensions by 2-3pixels.
If anyone has come across this, please let me know - It's completely baffling me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IE8 以不同的模式运行,具体取决于它是否访问在本地主机上运行的站点与另一台服务器上运行的站点。我知道这很奇怪。我以前也遇到过这个问题。使用开发人员工具 (F12) 并检查浏览器运行的模式(Quirks、IE7 标准、IE8 标准、IE8 兼容性)。
IE8 runs in different modes depending on if it's visiting a site running on localhost vs another server. It's weird, I know. I've run across this issue before as well. Use the developer tools (F12) and check which mode (Quirks, IE7 Standard, IE8 Standard, IE8 Compatibility) the browser is running in.
是否是客户端缓存的旧 CSS 文件?
Could it be an old CSS file that is cached on the client?