HTML5   发布时间:2022-04-27  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了iPad上web 开发的一些事情大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_419_6@ 一、Meta、Link设置
1、设置Safari的页面宽度(在iPhone中认宽度为980px)
<Meta name=”viewport” content=”user-scalable=no,width=device-width” />

2、添加Home Screen图标
<link rel=”apple-touch-icon” href=”myCustomIcon.png” />
<link rel=”apple-touch-icon-precomposed” href=”myCustomIcon.png” />

3、全屏模式
<Meta name=”apple-mobile-web-app-capable” content=”yes” />

4、状态栏样式(只有在全屏模式下才可以改变状态栏样式)
<Meta name=”apple-mobile-web-app-status-bar-style” content=”black” />

5、App加载图片(相当于经常使用的loading部分)
<Meta name=”apple-touch-startup-image” href=”myCustomStartupGraphic.png” />

6、Orientation CSS(Media Queries
<link rel=”stylesheet” media=”screen and (orientation: porTrait)” href=”porTrait.css” />
<link rel=”stylesheet” media=”screen and (orientation: landscapE)” href=”landscape.css” />


<Meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0,minimum-scale=1.0,maximum-scale=1.0">

大佬总结

以上是大佬教程为你收集整理的iPad上web 开发的一些事情全部内容,希望文章能够帮你解决iPad上web 开发的一些事情所遇到的程序开发问题。

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

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