正在寻找一种方法来通过 RDP 连接禁用 IE8 上 CSS 的特殊处理?
我目前正在开发一个网站,当我在本地测试该网站时,一切看起来都很好,但是当我通过与同一台计算机的 RDP 连接测试该网站时,样式处理全部被劫持了。字体都是固定高度的,浏览器设置没有改变,我只是通过 RDP 重新连接后刷新了页面。
这是本地的样子:
这是通过 RDP 的样子
(到同一台机器,同一浏览器,同一会话,刚刚刷新):
是我可以添加某种 HTML 元数据来阻止这种行为吗?
这不是唯一的例子,这是一个站点范围的问题。当然,我可以仔细检查并尝试硬塞所有东西,以便通过 RDP 连接更好地工作,在大多数情况下,我只是希望有一个更省时的修复。
I'm currently working on a website, and when I test the website locally, everything looks fine, but when I test the website over an RDP connection to the same machine the styles handling is all jacked around. The fonts are all fixed height, the browser settings haven't changed, I just refreshed the page after I reconnected over RDP.
Here's what it looks like Locally:
Here's what it looks like over RDP
(to the same machine, same browser, same session, just refreshed):
Is there some sort of HTML metadata I can add that will prevent this behavior?
This isn't the only example, this is a site-wide issue. I can, of course, go through and try to shoehorn everything to work a little better over an RDP connection, in most instances, I'm just hoping there's a less time-consuming fix.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加了标签:
在我的 HTML 中 To my。这迫使 IE 使用最新版本的 IE 标准。 (在本例中为 IE8)...如果没有它,它会由于某种原因恢复到 IE7 标准模式。
感谢 MvanGeest 为我指明了正确的方向。
事实上,它在 IE7 标准模式下看起来很混乱,这意味着我必须重新审视我的 CSS 并进行一些修复,但上述至少解决了 IE8 浏览器的问题。
奇怪的是,只有通过 RDP 才将模式默认为 IE7 标准模式。
Added the tag:
To my in my HTML. This forced IE to use the latest version of IE standards. (in this case IE8)... without that it was reverting to IE7 Standards mode for some reason.
Thank you to MvanGeest for pointing me in the right direction.
The fact it looked messed up in IE7 Standards mode does mean I'll have to revisit my CSS and put in some fixes, but the above solved the issue at least for IE8 browsers.
Strange that only over RDP was it defaulting the mode to IE7 Standards mode.