$('.comment').hide(2000);
两秒后淡出隐藏类(class)评论。有没有一种简单的方法可以通过添加额外的类来防止带有“comment”类的 div 褪色?
<div class="comment">This text hides</div>
<div class="comment nohide">This text should not hide</div>
添加 nohide 类并不能阻止它隐藏。我可能最终会创建一个新类,但我想我会问。
最佳答案
关于Jquery 类选择器和 hide(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10472022/