日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

一些常用的meta标签及其作用

發布時間:2024/7/19 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 一些常用的meta标签及其作用 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

聲明文檔使用的字符編碼?
<meta charset='utf-8'>
優先使用 IE 最新版本和 Chrome?
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="wap-font-scale" content="no">

頁面描述?
<meta name="description" content="不超過150個字符"/>
頁面關鍵詞?
<meta name="keywords" content=""/>
?網頁作者?
<meta name="author" content="name, email@gmail.com"/>
搜索引擎抓取?
<meta name="robots" content="index,follow"/>

移動端
<meta?name="viewport"?content="width=device-width,?initial-scale=1.0,maximum-scale=1.0,?user-scalable=no"/>
<!--?viewport的content取值?-->
<!--?width:寬度(數值?/?device-width)(200~10000,默認為980px)?-->
<!--?height:高度(數值?/?device-height)(223~10000)?-->
<!--?initial-scale:初始縮放比例?(0~10)?-->
<!--?minimum-scale:允許用戶縮放到的最小比例?-->
<!--?maximum-scale:允許用戶縮放到的最大比例?-->
<!--?user-scalable:是否允許用戶縮放?(no/yes)??-->
?uc強制豎屏?
<meta?name="screen-orientation"?content="portrait"> QQ強制豎屏?
<meta?name="x5-orientation"?content="portrait"> UC強制全屏?
<meta?name="full-screen"?content="yes"> QQ強制全屏?
<meta?name="x5-fullscreen"?content="true"> ?UC應用模式?
<meta?name="browsermode"?content="application"> QQ應用模式?
<meta?name="x5-page-mode"?content="app"> IOS啟用?WebApp?全屏模式?
<meta?name="apple-mobile-web-app-capable"?content="yes"?/> ?IOS全屏模式下隱藏狀態欄/設置狀態欄顏色?content的值為default?|?black?|?black-translucent ?
<meta?name="apple-mobile-web-app-status-bar-style"?content="black-translucent"?/> IOS添加到主屏后的標題?
<meta?name="apple-mobile-web-app-title"?content="標題"> IOS添加智能?App?廣告條?Smart?App?Banner?
<meta?name="apple-itunes-app"?content="app-id=myAppStoreID,?affiliate-data=myAffiliateData,?app-argument=myURL">
去除iphone?識別數字為號碼?
<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">

轉載于:https://www.cnblogs.com/lhl66/p/7473963.html

總結

以上是生活随笔為你收集整理的一些常用的meta标签及其作用的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。