html修改網站圖標,分享內容,分享圖標等

  • 修改網站圖標
<link rel="icon" href="test.ico" >

部分瀏覽器還支持gif作爲圖標,GIF尺寸不能太大,建議16x16,列如:火狐瀏覽器

<link rel="icon" href="test_ico.gif" type="image/gif" >

注意:如果網站語言使用的是XHTML必須要在>後面加上‘/’。因爲XHTML語法要比HTML更加嚴謹!

<link rel="icon" href="test.ico" />
  • 修改網站介紹
<meta data-n-head="true" data-hid="description" name="description" content="網站介紹">
  • 修改分享圖標
<meta property="og:image" content="./images/risk.png" />

設置文檔寬度、是否縮放

<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no" />
  • 優先使用IE最新版本或chrome
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  • 360讀取到這個標籤立即錢換到極速模式
<meta name="renderer" content="webkit" />
  • 禁止百度轉碼
<meta http-equiv="Cache-Control" content="no-siteapp" />
  • UC強制豎屏
<meta name="screen-orientation" content="portrait" />
  • QQ強制豎屏
<meta name="x5-orientation" content="portrait" />
  • UC強制全屏
<meta name="full-scerrn" content="yes" />
  • QQ強制全屏
<meta name="x5-fullscreen" content="ture" />
  • QQ應用模式
<meta name="x5-page-mode" content="app" />
  • UC應用模式
<meta name="browsermode" content="application">
  • window phone 點亮無高光
<meta name="msapplication-tap-highlight" content="no" />
  • 安卓設備不自動識別郵件地址
<meta name="format-detection" name="email=no" />
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章