Gif IE 渲染问题
我遇到了 GIF 无法在 IE 中正确呈现的问题。
https://www.icm.org.uk/images/stories/468x60px_no_image_v2.gif
在测试的所有其他浏览器中,它都能很好地渲染 nad 动画,但在 IE 中(在 IE8 中测试),最终帧带有边框(也许其他帧(尽管不会那么明显)渲染错误。右侧边框丢失,底部边框似乎被拉伸,几乎就像到处缺少像素一样。
有谁知道这是为什么以及如何解决它?
干杯,
丰富
I have a problem with a GIF that will not render properly in IE.
https://www.icm.org.uk/images/stories/468x60px_no_image_v2.gif
In every other browser tested it renders nad animates fine but in IE (tested in IE8) the final frame with the border (and perhaps the other frames although it would not be so obvious) renders wrongly. The right hand border is missing and the bottom border seems to be stretched and almost as if pixels were missing here and there.
Does anyone know why this is and how to get around it?
Cheers,
Rich
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了回答我自己的问题,GIF 内部的三个帧的宽度和高度都比 GIF 整体尺寸短一个像素,这在右侧和底部边缘留下了一个透明像素。由于某些原因,IE8 似乎无法处理此问题。
To answer my own question it appears that inside the GIF the three frames were all a pixel short in width and height than the overall GIF dimension this left a pixel of transparency on the right and bottom edge. It appears IE8 can't handle this for some reason.