会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
只有一
博客园
首页
新随笔
联系
管理
2021年5月7日
“nth-child”选择器的优先级高于伪类选择器“:hover”
摘要: 发现问题 在一次练习中,我设置了如下代码: .box img:hover { transform: scale(1.5,1.5); z-index: 1; } .box img:nth-child(1) { position: absolute; top: 150px; left: 300px; t
阅读全文
posted @ 2021-05-07 17:03 DurianTRY
阅读(131)
评论(0)
推荐(0)
编辑