关于meta标签的详解之format-detection

sk  2016-9-22
0

1.meta标签中的format-detection属性及含义:

意为:格式检测

或许你有这样的经历,在制作手机站的时候,点击了没有任何链接跳转的数字时,它会提示你拨号操作。

禁止这一提示方法:

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

同理还有以下相关操作:

禁止跳转邮箱:<meta name="format-detection" content="email=no">

禁止跳转地图:<meta name="format-detection" content="adress=no">

以上的内容也可以直接写为:

<meta name="format-detection" content="telephone=no,email=no,adress=no">

上面介绍的telephone、email、adress这三个如果后面的值修改为yes,就是开启,也就是默认的情况。


番外:

禁止链接高亮:<meta name="msapplication-tap-highlight" content="no">

设置响应式网页必备:<meta name="viewport" content="user-scalable=no,initial-scale=1">


未完待续....

回复 0  
游客  现在


二维码