CSS Selectors Level 3

IT/코딩 CSS

무찌마 / 2021. 9. 1. / 댓글

W3C Cascading Style Sheets articles and tutorials

 

 

Selectors Level 3

Selectors are patterns that match against elements in a tree, and as such form one of several technologies that can be used to select nodes in an XML document. Selectors have been optimized for use with HTML and XML, and are designed to be usable in perfor

www.w3.org

https://www.w3.org/TR/selectors-3/#adjacent-sibling-combinators

 

다른 클래스를 호출하기 위한 코드를 찾다가 자꾸 잊는 내용을 상기시키기 위한 책갈피입니다.

adjacent sibling combinators

스크립트를 사용하지 않아도 간단한 기능은 CSS만으로 구현할 수 있습니다.

 

*
E
E[foo]
E[foo="bar"]
E[foo~="bar"]
E[foo^="bar"]
E[foo$="bar"]
E[foo*="bar"]
E[foo|="en"]
E:root
E:nth-child(n)
E:nth-last-child(n)
E:nth-of-type(n)
E:nth-last-of-type(n)
E:first-child
E:last-child
E:first-of-type
E:last-of-type
E:only-child
E:only-of-type
E:empty
E:linkE:visited
E:active, E:hover, E:focus
E:target
E:lang(fr)
E:enabled, E:disabled
E:checked
E::first-line
E::first-letter
E::before
E::after
E.warning
E#myid
E:not(s)
E F
E >F
E + F
E ~ F

댓글