Windows Server 2008下IE8的字体粗细
我的屏幕在 Windows XP 下的 IE8 中看起来不错。但是当我在 Windows Server 2003 下用 IE8 打开它时,所有文本都比 XP 中更粗体。我可以对其应用样式,例如更改 css 中的字体粗细,但在这种情况下,Windows XP 下的字体粗细也会发生变化,并且无论如何我的屏幕看起来都会有所不同。
My screen looks good in IE8 under Windows XP. But when I open it in IE8 under Windows Server 2003, all text is more bold than in XP. I can apply styles to it, for example change font-weight in css, but in that case font weight changes under Windows XP too and in any case my screen looks differ.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能与计算机上的可用字体有关,而不是与浏览器有关。
检查文本尝试使用什么字体,以及两台计算机上安装的字体。如果缺少一台机器,您可以安装它们,或者只是将样式表设置为使用两台机器上都可用的字体。
如果您只担心那些运行 IE8 的特定计算机(即,如果它是您自己的内部 Intranet 上的站点),那么这应该足够了。
但是,如果您希望从外部查看该页面,请记住,不可能在所有浏览器和操作系统上实现精确的像素完美匹配。例如,如果 Mac 用户打开您的页面,他们肯定不会安装 Ariel 和 Tahoma 字体。浏览器将尝试选择最接近的匹配项,但它看起来会有所不同。没有真正的解决办法。即使更改屏幕分辨率也会影响字体的外观。
This is likely to be related to the available fonts on the computer rather than the browser.
Check what font the text is trying to use, and what fonts are installed on both machines. If there's any missing one one machine you could install them, or just set the stylesheet to use a font that is available on both machines.
If you're only worried about those particular machines running IE8 (ie if it's a site on your own internal intranet) then that should be enough.
However if you're expecting the page to be viewed externally, bear in mind that an exact pixel-perfect match is no possible across all browsers and operating systems. For example, if a Mac user opens your page, they certainly won't have Ariel and Tahoma fonts installed. The browser will try to pick the closest match it has, but it will look different. There's no real way around that. Even changing the screen resolution will affect how your fonts look.