移动前端头部标签(HTML5 head meta)

川长思鸟来 2022-08-19 01:49 251阅读 0赞

<! DOCTYPE html> <!-- 使用 HTML5 doctype,不区分大小写 -->

< html lang = "zh-cmn-Hans" > <!-- 更加标准的 lang 属性写法 http://zhi.hu/XyIa -->

< head >

` `

` <`meta charset = 'utf-8' >

` `

` <`meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" />

` `

` <`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 = "initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no" >

` ``<!--width=device-width` 会导致 iPhone 5 添加到主屏后以 WebApp 全屏模式打开页面时出现黑边 http://bigc.at/ios-webapp-viewport-meta.orz —>``

` `

` <`meta name = "apple-mobile-web-app-title" content = "标题" >

` `

` <`meta name = "apple-mobile-web-app-capable" content = "yes" />

` `

` <`meta name = "apple-itunes-app" content = "app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL" >

` `

` <`meta name = "apple-mobile-web-app-status-bar-style" content = "black" />

` `

` <`meta name = "format-detection" content = "telphone=no, email=no" />

` `

` `

` <`meta name = "renderer" content = "webkit" >

` `

` <`meta http-equiv = "X-UA-Compatible" content = "IE=edge" >

` `

` <`meta http-equiv = "Cache-Control" content = "no-siteapp" />

` `

` <`meta name = "HandheldFriendly" content = "true" >

` `

` <`meta name = "MobileOptimized" content = "320" >

` `

` <`meta name = "screen-orientation" content = "portrait" >

` `

` <`meta name = "x5-orientation" content = "portrait" >

` `

` <`meta name = "full-screen" content = "yes" >

` `

` <`meta name = "x5-fullscreen" content = "true" >

` `

` <`meta name = "browsermode" content = "application" >

` `

` <`meta name = "x5-page-mode" content = "app" >

` `

` <`meta name = "msapplication-tap-highlight" content = "no" >

` `

` <`link rel = "apple-touch-icon-precomposed" href = "/apple-touch-icon-57x57-precomposed.png" />

` `

` <`link rel = "apple-touch-icon-precomposed" sizes = "114x114" href = "/apple-touch-icon-114x114-precomposed.png" />

` `

` <`link rel = "apple-touch-icon-precomposed" sizes = "144x144" href = "/apple-touch-icon-144x144-precomposed.png" />

` `

` `

` `

` <`link rel = "apple-touch-startup-image" sizes = "768x1004" href = "/splash-screen-768x1004.png" />

` `

` <`link rel = "apple-touch-startup-image" sizes = "1536x2008" href = "/splash-screen-1536x2008.png" />

` `

` <`link rel = "apple-touch-startup-image" sizes = "1024x748" href = "/Default-Portrait-1024x748.png" />

` `

` <`link rel = "apple-touch-startup-image" sizes = "2048x1496" href = "/splash-screen-2048x1496.png" />

` `

` <`link rel = "apple-touch-startup-image" href = "/splash-screen-320x480.png" />

` `

` <`link rel = "apple-touch-startup-image" sizes = "640x960" href = "/splash-screen-640x960.png" />

` `

` <`link rel = "apple-touch-startup-image" sizes = "640x1136" href = "/splash-screen-640x1136.png" />

` `

` `

` `

` <`meta name = "msapplication-TileColor" content = "#000" />

` `

` <`meta name = "msapplication-TileImage" content = "icon.png" />

` `

` <`link rel = "alternate" type = "application/rss+xml" title = "RSS" href = "/rss.xml" />

` `

` <`link rel = "shortcut icon" type = "image/ico" href = "/favicon.ico" />

` `

` `

` `

` <`meta property = "og:type" content = "类型" />

` <`meta property = "og:url" content = "URL地址" />

` <`meta property = "og:title" content = "标题" />

` <`meta property = "og:image" content = "图片" />

` <`meta property = "og:description" content = "描述" />

` `

` <`title >标题</ title >

</ head >

源引:http://caibaojian.com/mobile-meta.html

发表评论

表情:
评论列表 (有 0 条评论,251人围观)

还没有评论,来说两句吧...

相关阅读