# meta的format-detection屬性 ###### tags: `HTML` `meta` format-detection翻譯成中文的意思是“格式檢測”,顧名思義,它是用來檢測html裡的一些格式的,那關於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 你明明寫的一串數字沒加鏈接樣式,而iPhone會自動把你這個文字加鏈接樣式、並且點擊這個數字還會自動撥號!想去掉這個撥號鏈接該如何操作呢?這時我們的meta又該大顯神通了,代碼如下: telephone=no就禁止了把數字轉化為撥號鏈接! telephone=yes就開啟了把數字轉化為撥號鏈接,要開啟轉化功能,這個meta就不用寫了,在默認是情況下就是開啟! ### 二、email 告訴設備不識別郵箱,點擊之後不自動發送 email=no禁止作為郵箱地址! email=yes就開啟了把文字默認為郵箱地址,這個meta就不用寫了, 在默認是情況下就是開啟! ### 三、adress adress=no禁止跳轉至地圖! adress=yes就開啟了點擊地址直接跳轉至地圖的功能,在默認是情況下就是開啟! 來源:https://www.jianshu.com/p/82a85a53d5b4
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up