`
deng131
  • 浏览: 662268 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

iPhone展示Web应用需要配置

阅读更多
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0"/>

device-width:视图宽度与设备同宽。

<link rel="apple-touch-icon" href="/yourIcon.png"/>

指定在iPhone主屏上所显示的图标为yourIcon.png

<link rel="apple-touch-startup-image" href="/startupImage.png">

指定web应用启动时的显示图片。 

<meta name="apple-mobile-web-app-capable" content="yes">

指定显示特征为web应用,不显示浏览器的特征。 

<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> 

指定iphone的状态条(status bar)的显示为透明,透明状漂浮在web应用视图的上面。也可以是default或black值。

如:
<meta name="apple-mobile-web-app-status-bar-style" content="black" />

或者
<meta name="apple-mobile-web-app-status-bar-style" content="default" /> 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics