我有一个css菜单,最初是一个模板,现在已经定制(但只有图形设计)。在PC上运行良好,但我遇到问题,例如Android手机(Chrome浏览器)。只有MENU标志应该是可见的,但从一开始所有菜单项都会被删除。此外,当您将其隐藏时,它会在您向下滚动页面时再次弹出。这很烦人。
网址,例如https://github.com/hyc/arc/
这应该是相关的一段代码:
@media all and (max-width: 768px),
only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px),
only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px),
only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px),
only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px),
only screen and (min-resolution: 192dpi) and (max-width: 1024px),
only screen and (min-resolution: 2dppx) and (max-width: 1024px)
答案 0 :(得分:0)
需要查看您的代码。使用plunkr或将文件上传到github并提供链接。
注意 - 如果您使用css为菜单设置动画,请尝试添加' animation-fill-mode:转发'保持打开/关闭菜单的状态。