標籤:html unsafe uri format one 屬性 policy line rip
一、Meta標籤中的format-detection屬性及含義
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"下面具體說下每個設定的作用:1、telephone
你明明寫的一串數字沒加連結樣式,而iPhone會自動把你這個文字加連結樣式、並且點擊這個數字還會自動撥號!想去掉這個撥號連結該如何操作呢?這時我們的meta又該大顯神通了,代碼如下:
telephone=no就禁止了把數字轉化為撥號連結!
telephone=yes就開啟了把數字轉化為撥號連結,要開啟轉化功能,這個meta就不用寫了,在預設是情況下就是開啟!
2、email
告訴裝置不識別郵箱,點擊之後不自動發送
email=no禁止作為郵箱地址!
email=yes就開啟了把文字預設為郵箱地址,這個meta就不用寫了,在預設是情況下就是開啟!
3、adress
adress=no禁止跳轉至地圖!
adress=yes就開啟了點擊地址直接跳轉至地圖的功能,在預設是情況下就是開啟!
二、Meta標籤中的Content-Security-Policy屬性及含義
content="default-src *; style-src ‘self‘ ‘unsafe-inline‘; script-src ‘self‘ ‘unsafe-inline‘ ‘unsafe-eval‘
安全性原則:只允許本站的資源
Meta標籤中的屬性及含義