悬停菜单
鼠标放到导航项上,下面展开一整块多列面板,分栏放链接、图片或推荐,官网和电商导航常用。要留一点关闭延迟和“桥”,鼠标斜着移进面板才不会一下收掉;手机上改成点击展开。
LOGO
实现提示词
Navbar mega menu: hovering or keyboard-focusing 'Products' opens a full-width panel with 3 columns of grouped links plus one featured card; 150ms close delay and a hover bridge so diagonal mouse paths don't close it; opens on tap for touch; Esc closes; use aria-expanded and aria-controls; animate with opacity and translateY(8px) over 200ms.Mega menu panel fades and slides down 8px over 200ms, columns stagger in 40ms apart, the nav underline slides to the active item; instant with prefers-reduced-motion.设计规范条目
### Mega Menu / Hover Dropdown (#mega-menu) Category: Navigation Mega menu: hover a nav item and a wide multi-column panel opens below with grouped links, images or featured picks. Add a small close delay so diagonal mouse movement doesn't dismiss it, and switch to tap-to-open on touch devices. - Do: Navbar mega menu: hovering or keyboard-focusing 'Products' opens a full-width panel with 3 columns of grouped links plus one featured card - Do: 150ms close delay and a hover bridge so diagonal mouse paths don't close it - Do: opens on tap for touch - Do: Esc closes - Do: use aria-expanded and aria-controls - Do: animate with opacity and translateY(8px) over 200ms With motion: Mega menu panel fades and slides down 8px over 200ms, columns stagger in 40ms apart, the nav underline slides to the active item; instant with prefers-reduced-motion. Live demo: https://uidesignmd.com/guides/mega-menu/