Skip to content

Commit ddeead8

Browse files
authored
Update Css.md
1 parent 832e5e1 commit ddeead8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

CSS/Css.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,12 @@
4343
- .className *:nth-child(2n) // 짝수, 괄호 안에 변수로 다양하게 선택 가능
4444
- .className *:nth-child(2n+1) // 홀수
4545

46+
# 가상 요소 선택자
47+
1. .className::before
48+
```
49+
// 선택자 요소의 내부 앞에 내용(content)을 삽입
50+
.box:before {
51+
content: "앞!"
52+
}
53+
```
54+
3.

0 commit comments

Comments
 (0)