问:CSS伪类选择器常见的有哪些?
七娃博客
23 次
伪类都是为了解决一些技术难题特定产生的,CSS伪类是用来添加一些选择器的特殊效果。已经定义好的选择器,不能自定义。
常见的伪类选择器:nth-child、nth-last-child、nth-of-type、nth-last-of-type、first-child 、last-child 、first-of-type 、last-of-type、only-child以及only-of-type
另外,a标签也自带伪类选择器:
a:link、a:visited、a:hover、a:active
觉得文章有用,支持一下作者吧!1分不嫌少,9.9不嫌多!
使用支付宝打赏
使用微信打赏
评论 | 0 条评论
登录之后才可留言,前往登录