码迷,mamicode.com
首页 > 移动开发 > 详细

移动端页面头部定义

时间:2014-12-14 15:46:39      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   http   io   ar   color   sp   for   

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

 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>

 

移动端页面头部定义

标签:des   style   blog   http   io   ar   color   sp   for   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!