Skip to content

Commit

Permalink
update(css-selector): usage of :target
Browse files Browse the repository at this point in the history
issue #105
  • Loading branch information
sabertazimi committed Dec 1, 2018
1 parent 1c6c51d commit 1de86c6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions programming/web/css/cssBasicNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,21 @@ a[title*=link] {text-decoration: underline;}
- E:lang(en):具有使用双字母缩写(en)表示的语言的元素;
- E:not(exception):该选择器将选择与括号内的选择器不匹配的元素:

```html
<a href="#p1">p1</a>
<div id="p1">p1</div>
```

```css
div:target {
background-color: purple;
}

#p1:target {
background-color: purple;
}
```

#### 伪元素

- ::first-line:匹配文本首行;
Expand Down

0 comments on commit 1de86c6

Please sign in to comment.