为什么IE和Firefox以不同的方式呈现相同的图像,我该如何防止它?

时间:2022-02-14 16:59:02

为什么IE和Firefox以不同的方式呈现相同的图像,我该如何防止它?

On the left you will notice the google logo rendered by IE, I drew a black line at the top and bottom of the G which extends into the FF windows which rendered the same exact logo yet the FF version renders the image larger. There is NO css linked to this page, just plain and simple Html.

在左边你会注意到IE渲染的谷歌徽标,我在G的顶部和底部画了一条黑线,它延伸到FF窗口,呈现相同的精确徽标,但FF版本渲染图像更大。没有链接到此页面的CSS,只是简单明了的Html。

Can anyone tell me why this is happening and can I prevent it? Is my box just fubar and no one else gets this behavior?

谁能告诉我为什么会这样,我可以阻止它吗?我的盒子只是fubar而没有其他人得到这种行为吗?

Edit: Failed to mention IE7/FF3

编辑:未提及IE7 / FF3

Edit: Posted Html as requested

编辑:根据要求发布Html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="ctl00_Head1"><title></title>
</head>
<body>
<img src="http://www.google.com/intl/en_ALL/images/logo.gif" />
</body>
</html>

2 个解决方案

#1


5  

I just created a composite image of screenshots of the Google image in IE, Firefox & Chrome and they're all in perfect register (top 2 images at 30% opacity).

我刚刚在IE,Firefox和Chrome中创建了一个Google图像截图的合成图像,它们都完美无缺(前2个图像的不透明度为30%)。

I believe it has to be a custom zoom you've got set in one of your browsers. Check IE's zoom at the right of the status bar, for example.

我相信它必须是您在其中一个浏览器中设置的自定义缩放。例如,检查状态栏右侧的IE缩放。

composite image http://mikescommunity.com/public/images/googleimagecomposite.png

合成图像http://mikescommunity.com/public/images/googleimagecomposite.png

#2


2  

Is text rendering any different? Might be that you have zoomed the page in FF (or IE)?

文字呈现是否有所不同?你可能在FF(或IE)中缩放了页面?

Can try Ctrl-0 to reset zoom sizing (works in both), I have a logitech mouse with a free spinning wheel, so this happens to me quite a bit when I forget the scroll wheel is still spinning and hit the Ctrl key. Plenty other places where the zoom etc could be set.

可以尝试Ctrl-0来重置缩放大小(两者兼有),我有一个带有*旋转轮的罗技鼠标,所以当我忘记滚轮仍在旋转并按下Ctrl键时,这种情况发生在我身上。还有很多其他可以设置缩放等的地方。

Could also be something entirely different, but generally I find that IE and FF render images much the same.

也可能是完全不同的东西,但通常我发现IE和FF渲染图像大致相同。

Wouldn't call the box fubar based on that, more likely a software setting somewhere... but hey, it's nearly Christmas, and if you want an excuse for a new box, I won't tell anyone :)

不会基于此调用盒子fubar,更可能是某个地方的软件设置...但是,嘿,这几乎是圣诞节,如果你想要一个新盒子的借口,我不会告诉任何人:)

#1


5  

I just created a composite image of screenshots of the Google image in IE, Firefox & Chrome and they're all in perfect register (top 2 images at 30% opacity).

我刚刚在IE,Firefox和Chrome中创建了一个Google图像截图的合成图像,它们都完美无缺(前2个图像的不透明度为30%)。

I believe it has to be a custom zoom you've got set in one of your browsers. Check IE's zoom at the right of the status bar, for example.

我相信它必须是您在其中一个浏览器中设置的自定义缩放。例如,检查状态栏右侧的IE缩放。

composite image http://mikescommunity.com/public/images/googleimagecomposite.png

合成图像http://mikescommunity.com/public/images/googleimagecomposite.png

#2


2  

Is text rendering any different? Might be that you have zoomed the page in FF (or IE)?

文字呈现是否有所不同?你可能在FF(或IE)中缩放了页面?

Can try Ctrl-0 to reset zoom sizing (works in both), I have a logitech mouse with a free spinning wheel, so this happens to me quite a bit when I forget the scroll wheel is still spinning and hit the Ctrl key. Plenty other places where the zoom etc could be set.

可以尝试Ctrl-0来重置缩放大小(两者兼有),我有一个带有*旋转轮的罗技鼠标,所以当我忘记滚轮仍在旋转并按下Ctrl键时,这种情况发生在我身上。还有很多其他可以设置缩放等的地方。

Could also be something entirely different, but generally I find that IE and FF render images much the same.

也可能是完全不同的东西,但通常我发现IE和FF渲染图像大致相同。

Wouldn't call the box fubar based on that, more likely a software setting somewhere... but hey, it's nearly Christmas, and if you want an excuse for a new box, I won't tell anyone :)

不会基于此调用盒子fubar,更可能是某个地方的软件设置...但是,嘿,这几乎是圣诞节,如果你想要一个新盒子的借口,我不会告诉任何人:)