问题描述
我正在使用mmenu( http://mmenu.frebsite.nl/)jQuery插件用于移动设备页面,并且我一直试图始终隐藏iPhone上的地址栏.我目前有:
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. 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
Issue should be fixed in the latest version of the plugin:http://mmenu.frebsite.nl/download.php#changelog_3_2
这篇关于在移动设备上展开时,mmenu隐藏地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!