移动设备常用代码
2016-02-04 16:25
316 查看
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta http-equiv="Cache-Control" content="no-siteapp"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes"> <meta name="format-detection" content="telephone=no"> <!--[if lt IE 9]> <script src="/statics/zhimai/js/Respond.js"></script> <![endif]-->
在编写 HTML 时,有一个 meta 元素:<meta name="format-detection"/>这个页面有何用途呢?
当该 HTML 页面在手机上浏览时,该标签用于指定是否将网页内容中的手机号码显示为拨号的超链接。
在 iPhone 上默认值是:
<meta name="format-detection" content="telephone=yes"/>
如果你不希望手机自动将网页中的电话号码显示为拨号的超链接,那么可以这样写:
<meta name="format-detection" content="telephone=no"/>
viewport 控制手机全屏
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
相关文章推荐
- 如何设计避免多线程编程中的死锁问题
- java的static块执行时机
- ISBN编码
- mybaits错误解决:There is no getter for property named 'id' in class 'java.lang.Long'
- Python中的字符串类型基本知识学习教程
- 使用Hadoop分析数据——简单案例java语言编程之MaxTemperature
- 【python 笔记】字符串translate用法
- ___89___GraphicsPath_GDI矩阵变幻Transform
- python 简介
- 静态代码块
- Qt核心剖析:信息隐藏
- Hexo+GitHub博客
- c++ 多重继承
- 【Lua学习笔记】 --> 《类型与值、表达式与基本语法》
- 【Python 笔记】Python中 swich...case 的实现
- Java集合类总结 (三)
- 入门的JAVA爬虫实现(附代码)
- Java 序列化的高级认识
- 怎样配置PHP环境和安装Zendstdio编辑器
- PHP生成缩略图,控制图片质量,支持.png .jpg .gif