gpt4 book ai didi

Firefox 的 CSS3 "nth-child"支持吗?

转载 作者:太空宇宙 更新时间:2023-11-03 21:01:45 25 4
gpt4 key购买 nike

根据 css3.info 的 selector test , Firefox 3.0 支持 nth-child 选择器的一些排列。但是,显示的代码 here (#30) 对我不起作用。

它应该选择空段落,所以我将我的代码编辑为以下内容,但它不会在 Firefox 中显示(它在 Opera 中有效)。

<style type="text/css">
div :nth-child(even) {
background-color: yellow;
height: 30px;
}
</style>

<div>
<div>Does this element match?</div>
<div></div>
<div>Does this element match?</div>
<div></div>
</div>

这是测试中的错误,还是我在某处犯了错误?

最佳答案

嗯……根据this page Firefox 3.0 不支持 :nth-child

关于Firefox 的 CSS3 "nth-child"支持吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/738266/

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