<meta name="format-detection"/>的用途。

来源:互联网 发布:数显量具数据存储器 编辑:程序博客网 时间:2024/05/08 11:32

在编写 HTML 时,有一个 meta 元素:<meta name="format-detection"/>这个页面有何用途呢?

当该 HTML 页面在手机上浏览时,该标签用于指定是否将网页内容中的手机号码显示为拨号的超链接。

在 iPhone 上默认值是:

<meta name="format-detection" content="telephone=yes"/>   (显示为超链接、电话号码会变色。)

如果你不希望手机自动将网页中的电话号码显示为拨号的超链接,那么可以这样写:

<meta name="format-detection" content="telephone=no"/>

viewport 控制手机全屏

 <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">



0 0