jQuery   发布时间:2022-03-30  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了jquery-mobile – 隐藏Safari地址栏和页脚大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
在我的jQuery Mobile项目中,我使用以下代码
<Meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1">

我正在获取Safari浏览器地址栏和导航页脚。如何隐藏这些,@R_581_9447@让我的应用程序@L_197_3@?@H_489_5@

解决方法

您可以设置几个元标记来告诉iOS,您的网站可以作为网络应用添加到主屏幕。从那里开始,所有的Safari元素都被隐藏。

查看标题为“隐藏Safari用户界面组件”的部分here。@H_489_5@

您可以为主屏幕上@L_197_3@的应用指定启动启动屏幕图像和@L_616_11@图标。@H_489_5@

<Meta name="viewport" content="width=device-width,maximum-scale=1">
<Meta name="apple-mobile-web-app-capable" content="yes" />
<Meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="apple-touch-icon" href="apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-114x114.png" />
<link rel="apple-touch-startup-image" href="apple-touch-startup-image-320x460.png" />
<link rel="apple-touch-startup-image" sizes="768x1004" href="apple-touch-startup-image-768x1004.png" />

大佬总结

以上是大佬教程为你收集整理的jquery-mobile – 隐藏Safari地址栏和页脚全部内容,希望文章能够帮你解决jquery-mobile – 隐藏Safari地址栏和页脚所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。