前端 css多级菜单想标记父级项当前状态怎么做_利用:focus-within伪类自动锁定父级 :focus-within 可使父级 li 在子菜单链接获焦时自动高亮,无需 JS;需确保子菜单含可聚焦元素( […]...