css - 如何在没有任何属性的情况下捕获 html 上的某些元素?

标签 css html

我正在尝试显示:无;在“founds 2 result”和“page 1 to 1”处,但我不知道如何捕捉它们。 非常感谢!

enter image description here

最佳答案

尝试使用 CSS

.search-filter-results#search-filter-results-540{
  display:none;
}

或Js

var element=document.getElementById('search-filter-results-5');
  element.style.cssText="display:none;";

关于css - 如何在没有任何属性的情况下捕获 html 上的某些元素?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45507158/

相关文章:

javascript - 设置 Canvas 的高度以覆盖整个可滚动页面

html - CSS 图像未正确对齐

javascript - 黑色文本 - 黑色背景时为白色

php - 如何将多项选择调查答案插入数据库?

JavaScript 和脚本加载

javascript - 查找页面上的所有a href,并为每个href动态添加ng-click事件

html - 图片形式提交IE

html - 流体网格中的表格图像大小调整和对齐

html - Bootstrap+WordPress 导航 : Center both links and brand

html - 如何在输入字段旁边插入图像 - HTML?