第5076页
-
CSS :optional 选择器,表单必填项设置样式
CSS :optional 选择器,表单必填项设置样式 实例 仅在 <input> 元素不带 "required" 属性时选择元素并设置样式: input:optional { background-col...
gtxyzz 2022.07.07 972浏览 0
-
CSS3 nth-of-type() 选择器,寄偶选择性设置元素段落文章样式
CSS3 nth-of-type() 选择器,寄偶选择性设置元素段落文章样式 实例 规定属于其父元素的第二个 p 元素的每个 p: p:nth-of-type(2) { background:#ff0000; } 定义和用法...
gtxyzz 2022.07.06 886浏览 0
-
CSS3 :nth-last-child() 选择器,从后向前设置元素段落的样式
CSS3 :nth-last-child() 选择器,从后向前设置元素段落的样式实例规定属于其父元素的第二个子元素的每个 p 元素,从最后一个子元素开始计数:p:nth-last-child(2) { background:#ff0000; }定义和用法:nth-last-child(n) 选...
gtxyzz 2022.07.06 851浏览 0
-
CSS3 nth-child() 选择器,选择特定的,子元素,段落字段文章设置样式
CSS3 nth-child() 选择器,选择特定的,子元素,段落字段文章设置样式实例规定属于其父元素的第二个子元素的每个 p 的背景色:p:nth-child(2) { background:#ff0000; }定义和用法:nth-child(n) 选择器匹配属于其父元素的第 N 个子元素,...
gtxyzz 2022.07.06 846浏览 0
-
CSS3 checked 选择器,设置单选框和复选框
CSS3 checked 选择器,设置单选框和复选框实例为所有被选中的 input 元素设置背景色:input:checked { background-color: #ff0000; }定义和用法:checked 选择器匹配每个已被选中的 input 元素(只用于单选按...
gtxyzz 2022.07.06 826浏览 0