Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用omega作为我的 drupal 基础主题,在 drupal 站点上使用Galleria模块和 Galleria '12' 主题制作响应式 Galleria 幻灯片。一切都运行良好,除了当我在 iPod 上进入全屏模式时,我无法摆脱地址栏。如果可能的话,我还想让底部工具栏消失。它们一起占用了相当多的空间。
有什么建议么?我已经看到了一些使用 javascript 来完成此任务的方法(以更通用的方式,而不是特定于 Galleria),但这不是我的强项,我不知道如何实现这些解决方案。
要在 iOS 上隐藏地址栏,您只需稍微滚动页面
window.onload = function() { // x/y coordinates, "1" will cause the address bar to hide window.scrollTo(0, 1); };
在浏览器中不能隐藏底栏。但是,您可以将网站添加到主屏幕,这样可以通过添加元标记来隐藏地址栏和底部工具栏:
<meta name="apple-mobile-web-app-capable" content="yes">