首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Coco的专栏

    抢先体验!超强的 Anchor Positioning 锚点定位

    } } p span:nth-child(1) { anchor-name: --anchor-1; } p span:nth-child(2) { anchor-name: --anchor :nth-child(1):hover) { --target: --anchor-1; } p:has(span:nth-child(2):hover) { --target: --anchor 那下面这样的代码将会是噩梦性的重复工作: p span:nth-child(1) { anchor-name: --anchor-1; } p span:nth-child(2) { anchor-name: --anchor :nth-child(1):hover) { --target: --anchor-1; } p:has(span:nth-child(2):hover) { --target: --anchor

    1.1K30编辑于 2023-08-16
领券