在Chrome浏览器中,CSS视差效果非常好,但不是Firefox [英] CSS Parallax working beautifully in Chrome but not Firefox

查看:122
本文介绍了在Chrome浏览器中,CSS视差效果非常好,但不是Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该网站暂时寄存于此处



我使用纯CSS视差示例此处。 / p>

所有HTML,CSS和JavaScript都应该可以在View Page Source下查看。 Chrome中的视差效果非常漂亮。在Firefox中,效果起作用,但是当我滚动到某个点时,背景图像开始消失! 解决方案

它显示了每个浏览器支持或不支持的内容。每个浏览器都是不同的,就像你所知道的那样,Edge和FF上的元素可能并不支持,就像他们在Chrome上一样。


The website is temporarily hosted here.

I used the Pure CSS Parallax example here.

All the HTML, CSS and JavaScript should be viewable under View Page Source. The parallax effect works beautifully in Chrome. In Firefox, the effect works but background images start to disappear when I scroll past a certain point!

解决方案

You can checkout http://caniuse.com/ it shows you what every browser supports or not. Every browsers is different as you know, there might be elements on Edge and FF that might not be supported like they are on Chrome.

这篇关于在Chrome浏览器中,CSS视差效果非常好,但不是Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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