[英]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.