小编Abi*_*hek的帖子

有什么区别:nth-​​child(1)与:css伪选择器中的first-child有没有选择一种方法而不是另一种方法的优点?

p:nth-child(1) {
color: red;
}

p:first-child {
color: red;
}
Run Code Online (Sandbox Code Playgroud)
<div>
<p>first</p>
<p>second</p>
</div>
Run Code Online (Sandbox Code Playgroud)

哪个伪选择器最好在代码中的段落标记中应用颜色

css css-selectors css3

2
推荐指数
1
解决办法
169
查看次数

如何在html中更改下拉框的高度?

问题是我无法在 html.for (select->option) 中更改下拉框的高度我尝试在 CSS 中应用样式。它不起作用

html css

0
推荐指数
1
解决办法
2万
查看次数

标签 统计

css ×2

css-selectors ×1

css3 ×1

html ×1