Skip to content

Commit

Permalink
fix: 修正选择器的真正含义 update css.md (jaywcjlove#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
demigodliu authored Nov 12, 2022
1 parent d796def commit 82457e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/css.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ p:first-child {
:- | :-
`div.classname` | 具有特定类名的 div
`div#idname` | 具有特定 ID 的 div
`div p` | div 中的段落
`div > p` | div 子节点中的所有 `P` 标签
`div + p` | div 之后的 `P` 标签
`div ~ p` | div 前面的 `P` 标签
`div p` | div 中的所有段落
`div > p` | 父元素是 div `P` 标签
`div + p` | div 之后的第一个同级 `P` 标签
`div ~ p` | div 之后所有的同级 `P` 标签

另见: [相邻兄弟](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Adjacent_sibling_combinator) / [通用兄弟](https://developer.mozilla.org/zh-CN/docs/Web/CSS/General_sibling_combinator) / [](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Child_combinator) 选择器

Expand Down

0 comments on commit 82457e8

Please sign in to comment.