Css叠加在Firefox中工作,但在Chrome中有些错误(Css overlay working in Firefox but someting is wrong in Chrome)

编程入门 行业动态 更新时间:2024-10-26 22:25:48
Css叠加在Firefox中工作,但在Chrome中有些错误(Css overlay working in Firefox but someting is wrong in Chrome)

如果你使用FIrefox查看这个网站

www,bloomdesign,rs(将“,”替换为“。”)

如果你从菜单中单击“usluge”这个词,你会发现一切都很好,但是如果你使用Chrome做到这一点,那么有些东西是行不通的。 (仅限主页。它适用于其他页面)

有谁知道如何在Chrome中解决此问题? 谢谢

if you take a look at this website using FIrefox

www,bloomdesign,rs (replace both "," with ".")

and if you click on the word "usluge" from the menu, you'll see that everything is fine, but if you do that using Chrome, something is not working. (only from homepage. It works from other pages)

Does anyone know how to solve this problem in Chrome? Thanks

最满意答案

感谢setek,我找到了一个解决方案,所以我会在这里发布,以防其他人遇到同样的问题。

使用最新的Chrome更新(33),叠加不透明度效果不佳,因此我们必须设置opacity: 0.0X ; 其中X是某个数字,而不是opacity: 0;

我发现我的js文件中的代码已被替换

overlay.fade('in');

overlay.fade('in'); overlay.setOpacity(0.01) ;

不确定是否有人有相同的javascript文件,但这是帮助我解决问题的原因。

Thanks to setek, I have found a solution, so I'll post it here in case someone else faces the same problem.

Overlay opacity doesn't work very well with the latest Chrome update (33), so we have to put opacity: 0.0X; where X is some number, instead of opacity: 0;

I found that code in my js file and replaced

overlay.fade('in');

with

overlay.fade('in'); overlay.setOpacity(0.01) ;

Not sure if anyone has the same javascript file, but this is what helped me to solve the problem.

更多推荐

本文发布于:2023-07-21 09:28:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1208970.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:但在   错误   工作   Css   Firefox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!