android - 总是在android中下拉菜单

标签 android html css google-chrome menu

我有一个 css 菜单,最初是一个模板,现在是定制的(但只是图形设计)。在 PC 上它运行良好,但我遇到了问题,例如Android 手机(Chrome 浏览器)。只有 MENU 标志应该是可见的,但从一开始所有菜单项都被下拉。此外,当您隐藏它时,当您向下滚动页面时它会再次弹出。这很烦人。

网址例如http://k154.fsv.cvut.cz

这应该是一段相关的代码:

@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)

最佳答案

需要查看您的代码。使用 plunkr 或将您的文件上传到 github 并提供链接。

注意 - 如果您使用 CSS 为菜单设置动画,请尝试添加“animation-fill-mode: forwards”以保持打开/关闭菜单的状态。

关于android - 总是在android中下拉菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46172363/

相关文章:

android - 如何将 LinearLayout 中的对象放在其他对象留下的空间中?

android - 从适配器类更新 fragment TextView

java - 如何使用 MatOfKeyPoint 绘制矩形以进行文本检测 | java

jquery - 使用 jquery 动画并将 div 滚动到顶部

css - 垂直对齐:基线如何处理?

android - 应用程序已在 android 模拟器中停止

javascript - 使用 HTML/Javascript 在图像上放置点

javascript - 尝试动态替换 "a href"中的 url,但 javascript 未更新结果

html - 如何防止嵌套表扩大父表?

javascript - jQuery 选项卡式续页