简体   繁体   English

jQuery的效果不想在谷歌浏览器中工作。 怎么了?

[英]jquery effect does not want to work in google chrome. what's wrong?

I'm trying to make a fadeIn() and slideDown() in jquery, but it does not want to work in chrome. 我试图在jquery中使fadeIn()和slideDown(),但它不想在chrome中工作。 Here's the code 这是代码

$(function (){

    $('#wrap h1').hide().slideDown(3000)
    $('.circles_1 img').hide().delay(3000).fadeIn(5000)

})

and here's the html code of it : 这是它的html代码:

<section id="circles">

<figure class="circles_1"><a href="photoshop.html">image 1<img        src="images/photoshop.png"/></a></figure>

<figure class="circles_1"><a href="illustrator.html">image 2<img src="images/illustrator.png"/></a></figure>

<figure class="circles_1"><a href="indesign.html">image 3<img src="images/indesign.png"/></a></figure>

<figure class="circles_1"><a href="websites.html">image 4<img src="images/websites.png"/></a></figure>


</section>

JSFiddle测试,并且看起来工作正常,请确保已包含JQuery Library链接。

Import jquery < script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" > 导入jquery <脚本src =“ // ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”>

and then try to load the function after the Dom is ready: 然后在Dom准备好后尝试加载该函数:

$( document ).ready(function() {
    $('#wrap h1').hide().slideDown(3000)**;**
    $('.circles_1 img').hide().delay(3000).fadeIn(5000)**;**
});

And dont forget the ; 并且不要忘记了;

Cheers. 干杯。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM