gpt4 book ai didi

css - 如何在 CSS 中引用所有具有某些属性的元素?

转载 作者:太空宇宙 更新时间:2023-11-04 05:29:43 26 4
gpt4 key购买 nike

我知道 [my_attr='my_value'] 是指具有属性 my_attr 且值为 my_value 的所有元素。

是否可以引用所有具有 my_attr 属性的元素(无论值是什么)?

最佳答案

使用[my_attr] alone :

[att] Represents an element with the att attribute, whatever the value of the attribute.

关于css - 如何在 CSS 中引用所有具有某些属性的元素?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3714578/

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