웹표준,웹접근성(html, html5, css, css3, javascript, jQuery, jQueryMobile, snecha, senchaTouch, php, mobileWebApp)
24. attribute$=value 본문
attribute$=value - 속성 값 선택자
: 속성의 값이 value 로 끝나는 요소들의 집합
ex) div 의 class 의 값이 test로 끝나는 요소들의 집합 ( 예 : div[class$="test"] )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 |
<!DOCTYPE HTML> < html > < head > < meta charset = "utf-8" > < title >[attribute$=value]</ title > < style > div[class$="test"] { background:#ffff00; } </ style > </ head > < body > < h1 >[attribute$=value]</ h1 > < h3 >속성의 값이 value 로 끝나는 요소들의 집합 </ h3 > < div class = "first_test" >first_test</ div > < div class = "second" >second</ div > < div class = "third _test" >second</ div > < div class = "test_01" >test01</ div > < div class = "test_02" >test02</ div > < p class = "test" >test03</ p > </ body > </ html > |
'css3 > selector' 카테고리의 다른 글
26. first-of-type - 자식 선택자 (0) | 2013.10.01 |
---|---|
25.attribute*=value (0) | 2013.10.01 |
23.[attribute^=value] - 속성 값 선택자 (0) | 2013.10.01 |
22. element1~element2 - 인접 형제 선택자 (0) | 2013.10.01 |
21. lang(language) - 가상 선택자 (0) | 2013.10.01 |