gpt4 book ai didi

CSS - 课前的星号是什么意思?

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

.some_class{}*.some_class{} 有什么区别。

这是否意味着该类仅应用于另一个标签内的标签,还是根本没有区别?

最佳答案

没有区别 - 请参阅 here

The universal selector, written "*", matches the name of any element type. It matches any single element in the document tree.

If the universal selector is not the only component of a simple selector, the "*" may be omitted. For example:

*[lang=fr] and [lang=fr] are equivalent.
*.warning and .warning are equivalent.
*#myid and #myid are equivalent.

关于CSS - 课前的星号是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20282043/

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