是否可以隐藏iOS 7 Safari中的地址栏? [英] Is it possible to hide the address bar in iOS 7 Safari?
本文介绍了是否可以隐藏iOS 7 Safari中的地址栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在iOS 7中隐藏地址栏?
Is it possible to hide the address bar in iOS 7?
我目前正在使用以下功能在iOS 6中执行此操作,但我刚刚更新了xCode并进行了测试iPhone Sim和iOS 7 Safari没有对此作出回应。
I am currently using the below to do this in iOS 6 but I just updated xCode and tested in iPhone Sim and iOS 7 Safari is not responding to this.
js:
window.addEventListener("load",function() {
// Set a timeout...
setTimeout(function(){
// Hide the address bar!
window.scrollTo(0, 1);
}, 0);
});
推荐答案
它不再起作用了。以下是关于 IOS7变更的非常详细的文章
It does not work anymore. Here is a very detailed article around the changes in IOS7
这篇关于是否可以隐藏iOS 7 Safari中的地址栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文