jquery - 如何隐藏html中的行

标签 jquery html css twitter-bootstrap

我想使用 jquery 函数隐藏 Bootstrap 中使用的所有类行 $('#divid').css("visibility", 'hidden'); 但什么也没有发生。有什么想法吗?

最佳答案

按类别隐藏:

$('.divclass').hide();

按 ID 隐藏:

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

按标签隐藏:

 $('div').hide(); // all div tag will be hide

关于jquery - 如何隐藏html中的行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40234203/

相关文章:

html - 如何使用选项卡显示特定用户的信息而不仅仅是第一个

javascript - 如何确保背景中的 div 在隐藏之前不可见?

Javascript: "onclick"循环中的 "for"函数无法解析变量

html - <input> 不适用于 css 中的下拉菜单

css - DIV 在 iPhone 上滚动并跟进

javascript - 垂直卡住网页的 "x%"?

php - jQuery 在悬停时展开文本

javascript - 单击按钮时重新加载 iframe 内容(本地 HTML)

javascript - 无法阻止基于ajax检查的提交

javascript - 我可以从输入字段作为数据 URL 获取的最大文件大小是多少?