CSS pseudo-class 는 선택될 요소(element)의 특별한 상태를 지정하는 선택자(selector)에 추가된 키워드 이다.
예를 들어 :hover는 사용자가 선택자에 의해 지정된 요소 위를 맴돌(hover) 때 스타일을 적용한다.
a:hover {
background-color: yellow;
}
출처 및 All CSS Pseudo Classes
https://www.w3schools.com/css/css_pseudo_elements.asp
CSS Pseudo-elements
CSS Pseudo-elements What are Pseudo-Elements? A CSS pseudo-element is used to style specified parts of an element. For example, it can be used to: Style the first letter, or line, of an element Insert content before, or after, the content of an element Syn
www.w3schools.com
'web_배우고익히고 > 2.CSS' 카테고리의 다른 글
CSS grid,position (0) | 2019.12.23 |
---|---|
CSS Attrubute Selecter(속성 선택자) (0) | 2019.12.23 |
CSS Combinators(결합자) (0) | 2019.12.23 |
CSS properties(속성) (0) | 2019.12.22 |
CSS(Cascading Style Sheets)란 (0) | 2019.12.22 |