为什么背景图像移动时滚动IE? [英] Why background-image is moving when scroll at IE?

查看:115
本文介绍了为什么背景图像移动时滚动IE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 我的Chrome版本为39.0.2171.99 m

  • IE版本为11

如果您看到

I`m tring to make background-image fixed

> myBlog ,当滚动仅IE时,背景图像正在移动。
我如何解决这个问题?

as you see myBlog, the background-image is moving when scroll only IE. How can I fix this?

这是我的背景代码

background-image: url("./images/cover.jpg");
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
background-size: cover;

请帮助我..

推荐答案

这是一个在Internet Explorer中固定背景图片的已知错误。我们最近做了一些工作来改进这种行为,并将更新发送到Windows 10上的Internet Explorer预览版本。您可以在 http://remote.modern.ie

This is a known bug with fixed background images in Internet Explorer. We recently did some work to improve this behavior and have shipped updates to our preview build of Internet Explorer on Windows 10. You can test the changes today from Mac OS X or Windows on http://remote.modern.ie.

下面是前后的IE 11和IE Remote预习。请注意,使用鼠标滚轮的滚动不会像在Internet Explorer 11中那样导致固定的背景图片跳跃(或抖动)。

Below is the before and after, IE 11 and IE Remote Preview. Notice how scrolling with the mouse-wheel no longer causes the fixed background image to jump (or jitter) as it did in Internet Explorer 11.

这篇关于为什么背景图像移动时滚动IE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆