【发布时间】:2018-08-24 03:53:01
【问题描述】:
在手机/平板电脑模式下,我有一个汉堡按钮,当我点击它时,菜单项会出现在它的下方。
出现的菜单项与汉堡太接近,导致用户体验问题。
考虑到我需要他们更低于,我尝试了:
#burger {margin-bottom: 20px}
media screen and (min-width: 768px) {
#burger {margin-bottom: 0}
}
这不好,因为它放大整个菜单区域 (#menu-primary)。定位菜单项本身也可以做到这一点...
You could see the problem live in my site 在手机/平板模式下上网时。
你会怎么解决?
【问题讨论】:
标签: javascript html css