web模板
来源:互联网 发布:开票软件自动更新多久 编辑:程序博客网 时间:2024/06/02 05:13
html:
<!DOCTYPE html><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport"> <meta content="yes" name="apple-mobile-web-app-capable"> <meta content="black" name="apple-mobile-web-app-status-bar-style"> <meta content="telephone=no" name="format-detection"> <meta content="email=no" name="format-detection"> <title><%= name %>的个人简历</title> <title>标题</title> <link rel="stylesheet" href="index.css"></head><body></body></html>
解释:
H5页面窗口自动调整到设备宽度,并禁止用户缩放页面
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
忽略将页面中的数字识别为电话号码
<meta name="format-detection" content="telephone=no" />
忽略Android平台中对邮箱地址的识别
<meta name="format-detection" content="email=no" />
当网站添加到主屏幕快速启动方式,可隐藏地址栏,仅针对ios的safari,ios7.0版本以后,safari上已看不到效果
<meta name="apple-mobile-web-app-capable" content="yes" />
将网站添加到主屏幕快速启动方式,仅针对ios的safari顶端状态条的样式,可选default、black、black-translucent
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
CSS
html{ font-size:10px; -webkit-touch-callout:none; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;}@media screen and (min-width:321px) and (max-width:375px){html{font-size:11px}}@media screen and (min-width:376px) and (max-width:414px){html{font-size:12px}}@media screen and (min-width:415px) and (max-width:639px){html{font-size:15px}}@media screen and (min-width:640px) and (max-width:719px){html{font-size:20px}}@media screen and (min-width:720px) and (max-width:749px){html{font-size:22.5px}}@media screen and (min-width:750px) and (max-width:799px){html{font-size:23.5px}}@media screen and (min-width:800px){html{font-size:25px}}body { font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;}* { margin: 0; padding: 0}
参考:http://www.cnblogs.com/PeunZhang/p/3407453.html
0 0
- web 模板
- web模板
- Web 服务器控件模板
- 一个web.xml模板
- Web测试模板
- web.xml文档模板
- web模板记录
- web.xml 配置模板
- web模板技术
- web中的dao模板
- mustache:Web模板引擎
- Java Web模板技术
- web模板引擎mustache
- Web开发模板
- web模板引擎--Mustache
- Web应用程序模板AdminLTE
- jinja2 web模板
- web.xml模板
- Palindrome Linked List
- android监听器事件
- 二维数组的遍历问题笔试
- mysql数据库SELECT使用详解
- 解决ios9 中UITableView 的Cell 自动缩进问题
- web模板
- c++ 多线程中 创建EXCEl应用程序失败解决办法
- MySQL:Subquery returns more than 1 row
- BZOJ1006 HNOI2008 神奇的国度
- 最近公共祖先 模板 裸题
- AbstractQueuedSynchronizer的实现分析(上)
- Openwrt 修改Mac地址
- 得墨忒耳定律
- 编程规范