当前位置:网站首页 > HTML与CSS基础 > 正文

css的伪类选择器(css伪类选择器hover)



选择器实例实例描述:activea:active选择活动的链接。:checkedinput:checked选择每个被选中的 元素。:disabledinput:disabled选择每个被禁用的 元素。:emptyp:empty选择没有子元素的每个

元素。:enabledinput:enabled选择每个已启用的 元素。:first-childp:first-child选择作为其父的首个子元素的每个

元素。:first-of-typep:first-of-type选择作为其父的首个

元素的每个

元素。:focusinput:focus选择获得焦点的 元素。:hovera:hover选择鼠标悬停其上的链接。:in-rangeinput:in-range选择具有指定范围内的值的 元素。:invalidinput:invalid选择所有具有无效值的 元素。:lang(language)p:lang(it)选择每个 lang 属性值以 "it" 开头的

元素。:last-childp:last-child选择作为其父的最后一个子元素的每个

元素。:last-of-typep:last-of-type选择作为其父的最后一个

元素的每个

元素。:linka:link选择所有未被访问的链接。:not(selector):not(p)选择每个非

元素的元素。:nth-child(n)p:nth-child(2)选择作为其父的第二个子元素的每个

元素。:nth-last-child(n)p:nth-last-child(2)选择作为父的第二个子元素的每个

元素,从最后一个子元素计数。:nth-last-of-type(n)p:nth-last-of-type(2)选择作为父的第二个

元素的每个

元素,从最后一个子元素计数。:nth-of-type(n)p:nth-of-type(2)选择作为其父的第二个

元素的每个

元素。:only-of-typep:only-of-type选择作为其父的唯一

元素的每个

元素。:only-childp:only-child选择作为其父的唯一子元素的

元素。:optionalinput:optional选择不带 "required" 属性的 元素。:out-of-rangeinput:out-of-range选择值在指定范围之外的 元素。:read-onlyinput:read-only选择指定了 "readonly" 属性的 元素。:read-writeinput:read-write选择不带 "readonly" 属性的 元素。:requiredinput:required选择指定了 "required" 属性的 元素。:root:root选择元素的根元素。:target#news:target选择当前活动的 #news 元素(单击包含该锚名称的 URL)。:validinput:valid选择所有具有有效值的 元素。:visiteda:visited选择所有已访问的链接。到此这篇css的伪类选择器(css伪类选择器hover)的文章就介绍到这了,更多相关内容请继续浏览下面的相关推荐文章,希望大家都能在编程的领域有一番成就!

版权声明


相关文章:

  • css8导弹(cm802akg导弹)2026-04-29 13:45:10
  • css3中属于结构化伪类选择器(css3中属于结构化伪类选择器的是)2026-04-29 13:45:10
  • css grid布局和flex布局(css3 flex布局)2026-04-29 13:45:10
  • vs怎么用html生成css(用vs写html的步骤)2026-04-29 13:45:10
  • grid布局兼容性(grid css 兼容)2026-04-29 13:45:10
  • 字体图标库css(css 字体库)2026-04-29 13:45:10
  • css伪类选择器(css伪类选择器优先级)2026-04-29 13:45:10
  • 跳转链接生成器(跳转链接html)2026-04-29 13:45:10
  • 字体图标怎么设置大小(字体图标怎么设置大小css)2026-04-29 13:45:10
  • css3伪类选择器有哪些(css伪类选择器实例)2026-04-29 13:45:10
  • 全屏图片