← 返回博客列表

HTML meta标签详解

Vic.Wang2015/10/13650 阅读0 喜欢最近更新 2026/07/06 22:05:04

本文写于 2015 年,距今已有 11 年,文中提及的技术方案与接口可能已经过时,请注意甄别参考。

关键字:Keywords

<meta name="Keywords" content="html,meta,meta标签" />

content 值以,英文逗号分隔,可以多个。

页面描述:Description

<meta name="Description" content="Meta标签详解。" />

删除默认的苹果工具栏和菜单栏:apple-mobile-web-app-capable

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

iPhone 的私有标签,移动端 专用,针对 iOS 的 Safari 浏览器。

取值:yes 和 on,默认是显示苹果的工具栏和菜单栏。

Safari顶端的状态条样式:apple-mobile-web-app-status-bar-style

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

这也是 iPhone 的私有标签

数字识别为电话号码:format-detection

<meta name="format-detection" content="telephone=no" />

告诉设备忽略将页面中的数字识别为电话号码。

不要着急,慢慢补充哈。

若有共鸣,不妨点个喜欢

本文地址:https://www.mingsixue.com/blog/detail/HTML-meta

分享:微博QQ空间X