gpt4 book ai didi

html - 第 nth-of-type 没有按预期工作

转载 作者:搜寻专家 更新时间:2023-10-31 22:55:24 25 4
gpt4 key购买 nike

<分区>

<div class="test">
<div class="test1"></div>
<div class="test2"></div>
<div class="test3"></div>
</div>

为什么

.test3:nth-of-type(3) {height: 100px;background: black;}

工作,但是

.test3:nth-of-type(1) {height: 100px;background: black;}

不是吗?在这种情况下,第 nth-type-of work 是否与 nth-child 相同?

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