html - 我如何在元标记文本中使用 css 选择器

标签 html css

我有这个元标记,<meta name="keywords" content="brands">我想为包含 content="brands"的每个页面使用自定义 css。 我可以选择“品牌”吗? 例如我试过这个

meta[content*=brands] a#FWcategorynamelink {display: none !important;}

有没有可能做这样的事情?

最佳答案

取决于你的页面是如何构建的,但你能不能在“品牌”页面的 body 标签中添加一个类,然后像往常一样设置样式:

全类同学

.#whatever {display:none}

关于html - 我如何在元标记文本中使用 css 选择器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28985351/

相关文章:

javascript - 无法正确刷新监视 <body> 元素的 Bootstrap scrollspy

html - 在 &lt;input type ="number"> 中禁用文本输入

javascript - 将鼠标悬停在图像的某个部分时,使它旁边出现一个 div

html - 内网IE兼容模式和Filereader的问题

javascript - 为什么 CSS 在 Windows 应用商店模板中不起作用?

HTML 文件上传接受和拒绝文件扩展名

javascript - 为什么在通过 javascript 添加时 css 转换会回到原来的位置?

javascript - jQuery - 滚动标题动画

html - IE 7 和 8 中的 css 倾斜转换

html - 溢出隐藏如何影响图像在显着主题中的位置?