E:link |
匹配鼠標(biāo)懸停在其上的E元素 |
E:visited |
匹配所有已被點(diǎn)擊的鏈接 |
E:hover |
匹配所有未被點(diǎn)擊的鏈接 |
E:active |
匹配鼠標(biāo)已經(jīng)其上按下但還沒有釋放的元素 |
E:focus |
匹配獲得當(dāng)前焦點(diǎn)的元素 |
E:disabled |
匹配表單中禁用的元素 |
E:checked |
匹配表單中被選中的radio或checkbox元素 |
E:selection |
匹配用戶當(dāng)前選中的元素 |
E:root |
匹配文檔的根元素穴墅,對于HTML文檔秽之,就是HTML元素 |
E:first-child |
匹配父元素的第一個(gè)子元素成肘,等同于nth-child(1) |
E:last-child |
匹配父元素的最后一個(gè)元素亿遂,等同于nth-last-child(1) |
E:nth-child(n) |
匹配父元素的第n個(gè)子元素 |
E:nth-last-child(n) |
匹配父元素的倒數(shù)第n個(gè)子元素 |
E:only-child |
匹配父元素下僅有的一個(gè)子元素浓若,等同于first-child盒使;last-child;nth-child(1)七嫌;nth-last-child(1) |
E:first-of-type |
匹配父元素下使用同種標(biāo)簽的第一個(gè)子元素少办,等同于nth-of-type(1) |
E:last-of-type |
匹配父元素下使用同種標(biāo)簽的倒數(shù)第一個(gè)子元素,等同于nth-last-of-type(1) |
E:nth-of-type(n) |
匹配父元素下使用同種標(biāo)簽的第n個(gè)子元素 |
E:nth-last-of-type(n) |
匹配父元素下使用同種標(biāo)簽的倒數(shù)第n個(gè)子元素 |
E:only-of-type |
匹配父元素下僅有的使用同種標(biāo)簽的一個(gè)子元素诵原,等同于first-of-type英妓;last-of-type;nth-of-type(1)绍赛;nth-last-of-type(1) |