웹표준,웹접근성(html, html5, css, css3, javascript, jQuery, jQueryMobile, snecha, senchaTouch, php, mobileWebApp)
25.attribute*=value 본문
attribute*=value - 속성 값 선택자
: 속성의 값이 value 가 포함 되어 있는 요소들의 집합
ex) div의 class 값에 value 가 포함되 있는 요소들의 집합 ( 예: 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
27
28 |
<!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 = "second_test_01" >second</ div > < div class = "third" >second</ div > < div class = "third_test_01" >second</ div > < div class = "test_01" >test01</ div > < div class = "text" >test02</ div > < p class = "test" >test03</ p > </ body > </ html > |
'css3 > selector' 카테고리의 다른 글
27. last-of-type - 자식 선택자 (0) | 2013.10.01 |
---|---|
26. first-of-type - 자식 선택자 (0) | 2013.10.01 |
24. attribute$=value (0) | 2013.10.01 |
23.[attribute^=value] - 속성 값 선택자 (0) | 2013.10.01 |
22. element1~element2 - 인접 형제 선택자 (0) | 2013.10.01 |