Parallax在不同浏览器上滚动图像

时间:2014-12-01 22:05:37

标签: css cross-browser parallax

我刚刚在投资组合网站推出,并在不同的浏览器上查看。底层图像变得巨大并占据整个屏幕(主要在firefox上)。我在谷歌浏览器上运行IOS优胜美地,它看起来很棒,而且效果很好。视差效果是纯CSS。让我知道你的想法或我如何解决这个问题。 谢谢。

bbennettdesign.com

1 个答案:

答案 0 :(得分:0)

您正在使用Keith Clark's Pure CSS Parallax effect,通常,您自己更改了视差结构上的一些项目。

请删除您的样式和HTML标记并进行检查。如果效果正常,请测试您的特定代码。因为这种效果适用于Firefox。

  

浏览器支持

Firefox, Safari, Opera and Chrome all support this effect.
Firefox works too but there is currently a minor issue with alignment.
IE doesn't support preserve-3d yet (it's coming) so the parallax effect won't work. That's ok though, you should still design your
     

内容在没有视差效果的情况下工作 - 你知道,进步   增强和所有这些!

或者您可以使用this.