2024年3月22日解決済み

li , :nth-child(3) { } としないのはなぜですか?

ユーザー
li:nth-child(3) {
  color: red;
}

li , :nth-child(3) {
  color: red;
}

としないのはなぜですか?
:nth-child(3) が要素ではないから?

スタッフ

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?