Safari浏览器 Html 引用 meta扩展标记

Safari浏览器中,Html页面<head></head>标记内,可以通过meta标记对浏览器对一些默认设置进行修改。

apple-mobile-web-app-capable

    Sets whether a web application runs in full-screen mode.
——设置一个Web应用是否在全屏模式下运行(即是否取消显示苹果的工具栏和菜单栏)
 
Syntax
 
  <meta name="apple-mobile-web-app-capable" content="yes">
 
Discussion
 
    If  content is set to  yes, the web application runs in full-screen mode; otherwise, it does not. The default behavior is to use Safari to display web content.
 
    You can determine whether a webpage is displayed in full-screen mode using the  window.navigator.standalone read-only Boolean JavaScript property.
 
Availability
 
    Available for iOS.
 
Support Level
 
    Apple extension.

apple-mobile-web-app-status-bar-style

    Sets the style of the status bar for a web application.
 
Syntax
 
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
 
Discussion
    This meta tag has no effect unless you first specify full-screen mode as described in - apple-mobile-web-app-capable.
    If  content is set to  default, the status bar appears normal. If set to  black, the status bar has a black background. If set to  black-translucent, the status bar is black and translucent. If set to  default or  black, the web content is displayed below the status bar. If set to  black-translucent, the web content is displayed on the entire screen, partially obscured by the status bar. The default value is  default.
 
Availability
 
    Available for iOS.
 
Support Level
 
    Apple extension.

format-detection

    Enables or disables automatic detection of possible phone numbers in a webpage in Safari on iOS.
 
Syntax
 
  <meta name="format-detection" content="telephone=no">
 
Discussion
   
    By default, Safari on iOS detects any string formatted like a phone number and makes it a link that calls the number. Specifying  telephone=no disables this feature.
 
Support Level
 
    Apple extension.

转载于:https://www.cnblogs.com/cleverJoe/p/6811721.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值