jQuery FadeIn在Firefox上不起作用 [英] jQuery fadeIn not working on firefox

查看:84
本文介绍了jQuery FadeIn在Firefox上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将body标记设置为display:none,在document.ready中,我执行了$('body').fadeIn(1000);.它可以在Chrome上运行,但在FF上页面仍保持display:none.

I have my body tag set to display:none, and in document.ready, I do $('body').fadeIn(1000);. It works on Chrome yet on FF the page stays display:none.

我的网站是此处

推荐答案

就像已经删除评论的人所说的那样,事实确实存在.我在主体内添加了一个div,并在其上应用了样式和jquery,效果很好.

It was, as someone who has now deleted their comment said, the fact it was on the body. I added a div inside the body and applied the styles and jquery on that and it worked fine.

这篇关于jQuery FadeIn在Firefox上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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