移动端的头部标签的使用方法


本文摘自PHP中文网,作者PHP中文网,侵删。

1.meta标签http-equiv属性语法格式:

  

1

2

<meta http-equiv="expires" content="wed,20 Jun 2007 22:33:00 GMT"/>

<!--expires  期限,可用于网页的到期时间,一旦网页过期,必须到服务器上重新传输-->

2.content-type (显示字符集的设定) 设定页面使用的字符集

1

<meta http-equiv="content-type" content="text/html" charset="utf-8"/>

3.keywords (关键字)

1

<meta http-equiv="Keywords" content="keywords1,keywords2...."/>

4.description (描述)

1

<meta http-equiv="description" content="this is my page"/>

5.format-detection 格式检测

    1》 忽略将页面中的数字识别为电话号码

1

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

    2》告诉设备不识别邮箱,点击之后不自动发送。

1

<meta http-equiv="format-detection" content="email=no"/>

6.viewport

1

<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />

  initial-scale:[0.0-1.0] 定义初始缩放比例

  minimum-scale:[0.0-1.0] 定义缩小最小比例

  maximum-scale:[0.0-1.0] 定义放大最大比例

  user-scalable: yes/no 用户允不允许手动缩放页面

 

以上就是移动端的头部标签的使用方法的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

怎样解决textarea标签大小不可变不能通过鼠标拖动的方式来拖动的问题

html中的超级链接<a>标签

html5不常用标签可以怎么使用?

怎样操作a标签的默认样式

讲讲html5中被废弃的标签

详解html5头部<meta>标签的常用信息小结

html块级标签行内标签的显示模式

html标签失效怎么办

textarea标签的设置

center是什么标签

更多相关阅读请进入《标签》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...