English 中文(简体)
jquery 显示上没有动画的动画加载图标
原标题:animated loading icon not animating on jquery show

我不确定我是否这样做是正确的。 在装入Div的 cs 中, 我有一个代码的片段 显示 : none. 所以当我单击 li, 装入Div 显示和窗体时, 但动画的 gif 没有动画。 如果我设置了显示 : 屏蔽只以确保它, 它会按您期望的那样进行动画, 但当然我想要在单击之前隐藏 div 。 < p> $( 函数 $ (“. tc- g- g- g- g-li”). live (“ klick”), 函数 {var $ itt=$(此), $t=( 事件) targ; $( lid) lt- t lt; lic; t- g- group-t; lt; lt; d- c; d; d===q; d; d;

问题回答

在装入 div 中放置动画 gif 。 我想你正在使用背景图像 。

更新更新更新

.loadingDiv img {display:none}

<div class="loadingDiv">
<img src="loading.gif" class="load1" alt="loading" />
<img src="loading.gif" class="load2" alt="loading" />
<img src="loading.gif" class="load3" alt="loading" />
</div>

 $( .loadingDiv img.load1 , $item).show();  //  $( .loadingDiv img.load1 , $item).show().parent().show();
 $( .loadingDiv , $item).show();

<div class="loadingDiv">
<img src="loading.gif" class="loading" alt="loading" />

</div>

 $( .loadingDiv img , $item).attr( src ,  loading2.gif );
 $( .loadingDiv , $item).show();




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签