基本的jQuery问题:
我试图透露一个使用jQuery标记为隐藏的div 。 但我不太明白
我在这里创建了一个JSFiddle: http : //jsfiddle.net/VwjxJ/
基本上,我想使用style="visibility: hidden;" 而不是style="display: none;" 因为我想要保留隐藏元素的空间
尝试使用show() , fadeIn()等,但都没有工作(他们为style="display: none;" )
我究竟做错了什么?
Basic jQuery question:
I am trying to reveal a div that has been marked as hidden using jQuery. But am not quite getting it
I've created a JSFiddle here: http://jsfiddle.net/VwjxJ/
Basically, I want to use style="visibility: hidden;" rather than style="display: none;" as I want the space of the hidden element to be maintained
Have tried using show(), fadeIn() etc but neither work (they do for style="display: none;")
what am I doing wrong?
最满意答案
如果你隐藏了它的visibility:hidden那么你可以用jQuery来显示它
$(".Deposit").css('visibility', 'visible');在小提琴中你缺少jQuery。 这是一个演示: http : //jsfiddle.net/9Z6nt/20/
If you have hidden it with visibility:hidden then you can show it with jQuery by
$(".Deposit").css('visibility', 'visible');And in the fiddle you are missing jQuery. Here is a demo: http://jsfiddle.net/9Z6nt/20/
更多推荐
发布评论