웹표준,웹접근성(html, html5, css, css3, javascript, jQuery, jQueryMobile, snecha, senchaTouch, php, mobileWebApp)
7. attribute - 속성 선택자 본문
attribute - 속성 선택자
: 지정된 속성 가진 요소를 모두 선택
ex) 지정된 속성 가진 요소를 모두 선택 ( 예 : a[target] )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 |
<!DOCTYPE HTML> < html > < head > < meta charset = "utf-8" > < title >[attribute]</ title > < style > a[target] { background-color:yellow; } </ style > </ head > < body > < h1 >속성 선택자</ h1 > < p >지정된 속성 가진 요소를 모두 선택</ p > </ body > </ html > |
'css3 > selector' 카테고리의 다른 글
9. attribute~=value (0) | 2013.09.05 |
---|---|
8. attribute=value (0) | 2013.09.05 |
6. element + element -인접 선택자 (0) | 2013.09.04 |
5. element>element - 자식 선택자 (0) | 2013.09.04 |
4. element element - 자손 선택자 (0) | 2013.09.04 |