gpt4 book ai didi

CSS:对所有元素使用否定

转载 作者:行者123 更新时间:2023-11-28 11:05:20 24 4
gpt4 key购买 nike

<分区>

我想全选<img> <article> 中的元素而不是在 <figure>

在这 2 个之后: How to create a css rule for all elements except one class?

https://www.w3.org/TR/css3-selectors/#negation

全部<img>包裹在 <a> 中或 <p> .似乎可以通过否定来完成。我现在的规则如下所示:

article *:not(figure) img { border: 2px solid red; }

关于为什么这不起作用的任何提示技巧?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com