jQuery可见展示 [英] JQuery Visible Show

查看:101
本文介绍了jQuery可见展示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码:

$('#loading').css("visibility", "visible");

$('#loading').show();

由于某些原因,我在使用CSS时无法使用它!

For some reason unknown to me when I use the CSS it works!

但是当我使用.show();

But when I use .show();

它不起作用.请帮助.我是JQuery的新手.

It does not work. Please kindly help. I am a new to JQuery.

谢谢.

<div class="footerOrder" id="loading" style="visibility:visible;">
      <img src="../utils/loadingExistenz.gif" width="32" height="32" border="0" />
</div>

尝试过:

<div class="footerOrder" id="loading" style="display:block;">

然后:

$('#loading').hide();

由于某种原因,还是不走!

And still no go for some reason!

奇怪的是它对所有其他DIV都有效!

Weird thing is it is working for all the other DIVs!!

推荐答案

使用display:none;代替可见性

这对我来说很好

$(function(){   

    $("#aLink2").click(function(){
        $('#loading').show();
    });  

});​

工作示例: http://jsfiddle.net/HShHg/6/

这篇关于jQuery可见展示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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