移动终端浏览器初始设置apple-mobile-web-app-capable.doc 立即下载
2024-07-05
约4.3千字
约3页
0
17KB
举报 版权申诉
预览加载中,请您耐心等待几秒...

移动终端浏览器初始设置apple-mobile-web-app-capable.doc

移动终端浏览器初始设置apple-mobile-web-app-capable.doc

预览

在线预览结束,喜欢就下载吧,查找使用更方便

10 金币

下载文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

移动终端浏览器默认设置视口的宽度和初始规模。最近做的一个移动终端的项目,遇到一个默认设置更改的问题。起初非常怀疑是自己的html写的有问题。经过一番页面尺寸的测试之后终于找到问题根源。知道是什么问题就可以找解决的方法了。<metaname="viewport"content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,height=device-height"/><metaname="format-detection"content="telephone=no">在页面的头部文件中加入了以上设定就ok了。以下是找到的有关于这些设定的解析。记录下来避免忘记。然而这些设定只在移动终端的浏览器中有效,非移动终端浏览器这些设定是无效的。并且要这些浏览器是基于iPhone而来的。初次涉及移动终端的应用,恼人的事情不只这一件呢,呵呵O(∩_∩)O~然,这件事情最有价值啊!apple-mobile-web-app-capableSetswhetherawebapplicationrunsinfull-screenmode.Syntax<metaname="apple-mobile-web-app-capable"content="yes">DiscussionIfcontentissettoyes,thewebapplicationrunsinfull-screenmode;otherwise,itdoesnot.ThedefaultbehavioristouseSafaritodisplaywebcontent.Youcandeterminewhetherawebpageisdisplayedinfull-screenmodeusingthewindow.navigator.standaloneread-onlyBooleanJavaScriptproperty.AvailabilityAvailableiniPhoneOS2.1andlater.SupportLevelAppleextension.apple-mobile-web-app-status-bar-styleSetsthestyleofthestatusbarforawebapplication.Syntax<metaname="apple-mobile-web-app-status-bar-style"content="black">DiscussionThismetataghasnoeffectunlessyoufirstspecifyfull-screenmodeasdescribedinHYPERLINK"http://control.blog.sina.com.cn/admin/article/InputTypes.html"\l"//apple_ref/doc/uid/TP40008055-SW5"“url.”Ifcontentissettodefault,thestatusbarappearsnormal.Ifsettoblack,thestatusbarhasablackbackground.Ifsettoblack-translucent,thestatusbarisblackandtranslucent.Ifsettodefaultorblack,thewebcontentisdisplayedbelowthestatusbar.Ifsettoblack-translucent,thewebcontentisdisplayedontheentirescreen,partiallyobscuredbythestatusbar.Thedefaultvalueisdefault.AvailabilityAvailableiniPhoneOS2.1andlater.SupportLevelAppleextension.format-detectionEnablesordisablesautomaticdetectionofpossiblephonenumbersinawebpageinSafarioniPhone.Syntax<metaname="format-detection"content="telephone=no">DiscussionBydefault,SafarioniPhonedetectsanystringformattedlikeaphonenumberandmakesitalinkthatcallsthenumber.Specifyingtelephone=nodisablesthisfeature.AvailabilityAvail
查看更多
单篇购买
VIP会员(1亿+VIP文档免费下)

扫码即表示接受《下载须知》

移动终端浏览器初始设置apple-mobile-web-app-capable

文档大小:17KB

限时特价:扫码查看

• 请登录后再进行扫码购买
• 使用微信/支付宝扫码注册及付费下载,详阅 用户协议 隐私政策
• 如已在其他页面进行付款,请刷新当前页面重试
• 付费购买成功后,此文档可永久免费下载
全场最划算
12个月
199.0
¥360.0
限时特惠
3个月
69.9
¥90.0
新人专享
1个月
19.9
¥30.0
24个月
398.0
¥720.0
6个月会员
139.9
¥180.0

6亿VIP文档任选,共次下载特权。

已优惠

微信/支付宝扫码完成支付,可开具发票

VIP尽享专属权益

VIP文档免费下载

赠送VIP文档免费下载次数

阅读免打扰

去除文档详情页间广告

专属身份标识

尊贵的VIP专属身份标识

高级客服

一对一高级客服服务

多端互通

电脑端/手机端权益通用