广州市网站建设公司在哪里,做网站赚钱但又不想开公司,南宁网站建设专家,dw怎么做网站首页表单选择器#xff1a; /*:enabled 可用的 :disabled 被禁用的 :focus 获取了焦点的
多用在表单元素上*/
input:enabled {...}
input:disabled {...}
input:focus {...} 属性选择器#xff1a; /*[attribute] [attributevalue] 选择具有对应属性的元素
即使此属性没有实际作…表单选择器 /*:enabled 可用的 :disabled 被禁用的 :focus 获取了焦点的
多用在表单元素上*/
input:enabled {...}
input:disabled {...}
input:focus {...} 属性选择器 /*[attribute] [attributevalue] 选择具有对应属性的元素
即使此属性没有实际作用*/
a[target] {...}
a[target_blank] {...} 次序选择器
:first-child 选取属于其父元素的首个子元素 :last-child 选取属于其父元素的最后一个子元素 :nth-child(n) 选取父元素的第n个子元素 :nth-last-child(n) 倒序选取父元素的第n个子元素 /*计算次序时不考虑类型但如果符合次序的元素跟选择器的类型不匹配则不会被选取*/
ul li:first-child {...}
p:nth-child(odd) {...}
p:nth-child(even) {...}
p:nth-last-child(2) {...}:first-of-type 父元素的特定类型的首个子元素的每个元素 :last-of-type 父元素的特定类型的首个子元素的每个元素 :nth-of-type(n) 父元素的特定类型的第n个子元素 :nth-last-of-type(n) 父元素的特定类型的第n个子元素的每个元素从最后一个子元素开始计数 /*只对类型匹配的元素进行次序计算*/
ul li:first-of-type {...}
p:last-of-type {...}
p:nth-of-type(2) {...}更多专业前端知识请上
【猿2048】www.mk2048.com