切换选项卡后,Firefox背景图像消失 [英] Firefox background-image disappear after switching tabs

查看:73
本文介绍了切换选项卡后,Firefox背景图像消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在渲染背景图像时,Firefox出现了一些非常奇怪的问题.我不确定这是不是Firefox错误还是仅仅是我的错.

I have some very weird issue with firefox while rendering background-images. I'm not sure if it's a firefox bug or simply my fault.

每次我在firefox中打开我的项目站点时,所有背景图像均已正确加载并显示.切换到另一个标签并过一会儿后,所有背景图像都消失了.我检查了开发人员工具中的网络分析"选项卡,所有文件均已正确加载.同样,在某些情况下,当我在其上选择一些文本后,图像的某些部分也会出现.一秒钟之后,所有图像都会显示出来.因此,我认为这是firefox中的渲染错误.

Every time I open my project site in firefox all background images are loaded and displayed correctly. After I switch to another tab and switch back after a while all background images disappeared. I checked the network analysis tab in the developer tools and all files are loaded correctly. Also in some situations parts of the images appear after I select some text over it. After parts of a second all the images show up. So I assume it's a rendering bug in firefox.

我的图像的实现方式如下:

My images are implemented like:

background-image:url("path/to/image.png");
background-size:cover;
background-position:center center;

该错误是否有解决方法?那甚至是个错误吗?有人可以确认吗?我在网上搜索,却找不到任何东西...

Is there a workaround for that bug? Is that even a bug? Can anyone confirm that? I searched the web and I couldn't find anything...

推荐答案

在为我的站点进行CSS背景图像和径向渐变的实验后,我遇到了这个错误,后来我才最终意识到这是Firefox中的错误而不是我的CSS.现在已确认该错误已在计划中的Firefox 76中已修复将于5月6日发布到稳定频道.要在5月6日之前使用Firefox 76,

I came across this bug after a long day of experimenting with CSS background images and radial gradients for a site of mine before I eventually realised this was a bug in Firefox and not my CSS. The bug is now confirmed to have been fixed in Firefox 76, which is scheduled for release to the Stable channel on May 6. To get hold of Firefox 76 before May 6, go here to download the 76 Beta and switch to the Beta channel. Just don't forget to switch back to the Stable channel when Firefox 76 is eventually released on May 6.

这篇关于切换选项卡后,Firefox背景图像消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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