关于 this page ,我想隐藏 Logo 上方显示的不正确的 HTML。它是由我们即将更换的旧插件生成的。
首先,我尝试了 CSS:
.vine-home-block-grapes:first-child {display: none;}
但这不会删除下面突出显示的 block :
你能帮我确定为什么吗?
最佳答案
使用 CSS :first-of-type 选择器
.vine-home-block-grapes:first-of-type{
display:none;
}
关于css - :first-child not being applied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30341449/