我使用的是Twitter Bootstrap,我注意到jQuery show()
或fadeIn()
不会使标有类hidden
的DOM元素出现,因为jQuery函数只删除了display: none
规范.不过,visibility
仍然设置为hidden
.
I wonder what is the best possible way to work around this?
- Remove the
hidden
class on the element - Change the visibility property
- 在我自己的css中覆盖隐藏的类
特别是,我想知道用jQuery或css解决这个问题是否更好,以及为什么.