728x90
자주 사용하는 클래스 명 선택자 옵션은 아래와 같다.
값이 특정하는 단어의 전체일 필요는 없다.
1. [class^="btn-"]
class 명이 "btn-"으로 시작되는 모든 선택자들
2. [class*="test"]
class 명 중에 "test"를 포함하는 모든 선택자들
3. [class$="--outline"]
class 명 중에 "--outline"으로 끝나는 모든 선택자들
참고 사이트 : https://www.w3schools.com/css/css_attribute_selectors.asp
CSS Attribute Selector
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
'DEVELOP' 카테고리의 다른 글
[CSS] flex 자식 요소 분할 방법 (0) | 2022.06.10 |
---|---|
[Publishing] 반응형 배너 작업_v2 (0) | 2022.05.30 |
[Sass] .scss로 svg 아이콘 색상 변경 (0) | 2022.04.08 |
[Publishing] 반응형 배너 작업 (0) | 2022.04.08 |
[Javascript] 특정 미디어에서만 함수 실행 (0) | 2022.04.08 |