简体   繁体   English

在移动设备上展开时,mmenu隐藏地址栏

[英]mmenu hide address bar when expanded on mobile

I am using mmenu ( http://mmenu.frebsite.nl/ ) jQuery plugin for a mobile page and I am trying to keep the address bar on the iPhone hidden at all times. 我在移动页面上使用mmenu( http://mmenu.frebsite.nl/ )jQuery插件,并且我一直试图始终隐藏iPhone上的地址栏。 I currently have: 我目前有:

window.addEventListener("load",function() {
      // Set a timeout...
      setTimeout(function(){
      // Hide the address bar!
      window.scrollTo(0, 1);
   }, 0);
});

but this only hide on page load so when I click the left menu and right menu buttons and the menus expand out the address bar reappears. 但这仅在页面加载时隐藏,因此当我单击左菜单和右菜单按钮时,菜单再次展开,地址栏再次出现。 Was wondering if there was a way to keep the address bar hidden when the menus are in their expanded state. 想知道菜单处于展开状态时是否有一种隐藏地址栏的方法。

该问题应该在该插件的最新版本中解决: http : //mmenu.frebsite.nl/download.php#changelog_3_2

这似乎解决了我的问题。

<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, height=device-height, width=device-width, user-scalable = no">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 滚动时在移动Safari中隐藏地址栏(touchOverflow) - Hide address bar in mobile Safari when scrolling (touchOverflow) 如何隐藏手机浏览器的地址栏? - How to hide a mobile browser's address bar? 如何在反应应用程序中在移动设备上“隐藏地址栏”? - How to "hide the address bar" on mobile in a react app? 如何在移动网络应用中隐藏地址栏? - How to hide address bar in mobile web app? 即使页面发生变化,jQuery Mobile或Sencha Touch如何在iPhone中隐藏地址栏? - How exactly jQuery Mobile or Sencha Touch hide address bar in iPhone even when page changes? 即使向上拖动,如何隐藏移动浏览器的地址栏? - How do I hide the address bar of mobile safari from appearing, even when dragged up? 通过移动浏览器打开时如何隐藏响应式Web应用程序的地址栏? - How to hide Address bar of a responsive webapp when opening through mobile browser? 在 Android 上的移动浏览器中向下滚动时,站点不会隐藏地址栏 - Site doesn't hide address bar when scroll down in mobile browsers on Android 点击课程时在地址栏中隐藏哈希 - Hide hash in address bar when click on class 在适用于iPhone和Android的移动DNN WebApp上隐藏地址栏 - Hide address bar on mobile DNN webApp for iphone and android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM