首页 > 移动平台 > 详细

移动端页面头部定义

时间:2014-12-14 15:45:05      阅读:190      评论:0      收藏:0      [点我收藏+]

我们在开发移动端页面的时候经常会遇到一些通用的需求,往往是,不支持缩放,苹果浏览器隐藏工具栏啊等等。我们总结一下:

 1 <head>
 2   <meta charset="utf-8">
 3   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 4   <title>项目名称</title>
 5   <meta name="description" content=""/>
 6   <meta name="viewport" content="minimal-ui, initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no">
 7   <meta name="apple-mobile-web-app-capable" content="yes">
 8   <meta name=‘apple-touch-fullscreen‘ content=‘yes‘>
 9   <meta name="full-screen" content="yes">
10   <meta name="apple-mobile-web-app-status-bar-style" content="black">
11   <meta name="format-detection" content="telephone=no">
12   <meta name="format-detection" content="address=no">
13   <meta name="keywords" content=""/>
14   <link rel="stylesheet" href="./css/reset.css"/>
15   
17   <link rel="stylesheet" href="./css/index.css"/>
18 </head>

 

移动端页面头部定义

原文:http://www.cnblogs.com/webARM/p/4162594.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!