手机网站和webapp开发默认页面
2014-09-03 21:35
309 查看
手机网站和webapp开发,有好多meta,每次都找挺麻烦的,于是做这么一个默认页面,用起来方便。
[html]
view plaincopyprint?
<!doctype html>
<html>
<head>
<meta
charset="utf-8">
<title>无标题文档</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
/>
<!--<meta name="viewport" content="(viewport的宽度,范围从200到10,000,默认为980像素)width=device-width, (初始缩放比例)initial-scale=1.0, (允许用户缩放到的最大比例,范围从0到10.0)maximum-scale=1.0, (允许用户缩放到的最小比例,范围从0到10.0)minimum-scale=1.0, ( 用户是否可以手动缩放,值可以是:①yes、
true允许用户缩放;②no、false不允许用户缩放)user-scalable=no" />-->
<meta
http-equiv="X-UA-Compatible"
content="IE=edge,chrome=1"
/>
<!--远以最新的IE版本模式来显示网页-->
<!--如果只是手机网站,不考虑webapp,可以删除该行以下内容-->
<meta
name="apple-mobile-web-app-capable"
content="yes"
/>
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent">
<!--启用web app。添加至主屏后,从主屏进入会隐藏地址栏和状态栏-->
<!--<meta name=”apple-mobile-web-app-status-bar-style” content=”black-translucent” />-->
<!--默认值为default(白色),可以定为black(黑色)和black-translucent(灰色半透明)。
注意: 若值为“black-translucent”将会占据页面px位置,浮在页面上方(会覆盖页面20px高度–iphone4和itouch4的Retina屏幕为40px)。-->
<link
rel="apple-touch-icon"
sizes="72x72"
href="/apple-touch-icon-72x72.png">
<link
rel="apple-touch-icon"
sizes="114x114"
href="/apple-touch-icon-114x114.png">
<link
rel="apple-touch-icon"
href="/static/images/identity/HTML5_Badge_64.png"
/>
<link
rel="apple-touch-icon-precomposed"
href="/static/images/identity/HTML5_Badge_64.png"
/>
<!--iOS用rel="apple-touch-icon"增加高光光亮的图标,rel="apple-touch-icon-precomposed"设计原图图标,另,android也能读取该图标。这样就能在用户把网页存为书签时,在手机HOME界面创建应用程序样式的图标。该路径需要注意的就是放到将网站的文档根目录下但不是服务器的文档的根目录。图片尺寸可以设定为57*57(px)或者Retina可以定为114*114(px),ipad尺寸为72*72(px)-->
<link
rel="apple-touch-startup-image"
href="milanoo_startup.png"
/>
<!--启动界面的图片。该路径需要注意的就是放到将网站的文档根目录下但不是服务器的文档的根目录。官方规定启动界面的尺寸必须为 320*640(px),原本以为Retina屏幕可以支持双倍,但是不支持,图片显示不出来。-->
<!--<meta name="apple-touch-fullscreen" content="yes">-->
<!--这meta的作用就是删除默认的苹果工具栏和菜单栏。content有两个值”yes”和”no”,当我们需要显示工具栏和菜单栏时,这个行meta就不用加了,默认就是显示。-->
<!--<meta name=”format-detection” content=”tele
4000
phone=no” />-->
<!--telephone=no禁止了把数字转化为拨号链接,仅苹果手机和平板,测试了下,好像不管用-->
<!--<meta name="HandheldFriendly" content="true" />-->
<!--针对plam和黑莓手机的设置-->
<!--<meta name="MobileOptimized" content="width">-->
<!--这个标记,有说是windows mobile的,也有说其它的,但是似乎没怎么用-->
</head>
<body>
</body>
</html>
[html]
view plaincopyprint?
<!doctype html>
<html>
<head>
<meta
charset="utf-8">
<title>无标题文档</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
/>
<!--<meta name="viewport" content="(viewport的宽度,范围从200到10,000,默认为980像素)width=device-width, (初始缩放比例)initial-scale=1.0, (允许用户缩放到的最大比例,范围从0到10.0)maximum-scale=1.0, (允许用户缩放到的最小比例,范围从0到10.0)minimum-scale=1.0, ( 用户是否可以手动缩放,值可以是:①yes、
true允许用户缩放;②no、false不允许用户缩放)user-scalable=no" />-->
<meta
http-equiv="X-UA-Compatible"
content="IE=edge,chrome=1"
/>
<!--远以最新的IE版本模式来显示网页-->
<!--如果只是手机网站,不考虑webapp,可以删除该行以下内容-->
<meta
name="apple-mobile-web-app-capable"
content="yes"
/>
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent">
<!--启用web app。添加至主屏后,从主屏进入会隐藏地址栏和状态栏-->
<!--<meta name=”apple-mobile-web-app-status-bar-style” content=”black-translucent” />-->
<!--默认值为default(白色),可以定为black(黑色)和black-translucent(灰色半透明)。
注意: 若值为“black-translucent”将会占据页面px位置,浮在页面上方(会覆盖页面20px高度–iphone4和itouch4的Retina屏幕为40px)。-->
<link
rel="apple-touch-icon"
sizes="72x72"
href="/apple-touch-icon-72x72.png">
<link
rel="apple-touch-icon"
sizes="114x114"
href="/apple-touch-icon-114x114.png">
<link
rel="apple-touch-icon"
href="/static/images/identity/HTML5_Badge_64.png"
/>
<link
rel="apple-touch-icon-precomposed"
href="/static/images/identity/HTML5_Badge_64.png"
/>
<!--iOS用rel="apple-touch-icon"增加高光光亮的图标,rel="apple-touch-icon-precomposed"设计原图图标,另,android也能读取该图标。这样就能在用户把网页存为书签时,在手机HOME界面创建应用程序样式的图标。该路径需要注意的就是放到将网站的文档根目录下但不是服务器的文档的根目录。图片尺寸可以设定为57*57(px)或者Retina可以定为114*114(px),ipad尺寸为72*72(px)-->
<link
rel="apple-touch-startup-image"
href="milanoo_startup.png"
/>
<!--启动界面的图片。该路径需要注意的就是放到将网站的文档根目录下但不是服务器的文档的根目录。官方规定启动界面的尺寸必须为 320*640(px),原本以为Retina屏幕可以支持双倍,但是不支持,图片显示不出来。-->
<!--<meta name="apple-touch-fullscreen" content="yes">-->
<!--这meta的作用就是删除默认的苹果工具栏和菜单栏。content有两个值”yes”和”no”,当我们需要显示工具栏和菜单栏时,这个行meta就不用加了,默认就是显示。-->
<!--<meta name=”format-detection” content=”tele
4000
phone=no” />-->
<!--telephone=no禁止了把数字转化为拨号链接,仅苹果手机和平板,测试了下,好像不管用-->
<!--<meta name="HandheldFriendly" content="true" />-->
<!--针对plam和黑莓手机的设置-->
<!--<meta name="MobileOptimized" content="width">-->
<!--这个标记,有说是windows mobile的,也有说其它的,但是似乎没怎么用-->
</head>
<body>
</body>
</html>
<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" /> <!--<meta name="viewport" content="(viewport的宽度,范围从200到10,000,默认为980像素)width=device-width, (初始缩放比例)initial-scale=1.0, (允许用户缩放到的最大比例,范围从0到10.0)maximum-scale=1.0, (允许用户缩放到的最小比例,范围从0到10.0)minimum-scale=1.0, ( 用户是否可以手动缩放,值可以是:①yes、 true允许用户缩放;②no、false不允许用户缩放)user-scalable=no" />--> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <!--远以最新的IE版本模式来显示网页--> <!--如果只是手机网站,不考虑webapp,可以删除该行以下内容--> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <!--启用web app。添加至主屏后,从主屏进入会隐藏地址栏和状态栏--> <!--<meta name=”apple-mobile-web-app-status-bar-style” content=”black-translucent” />--> <!--默认值为default(白色),可以定为black(黑色)和black-translucent(灰色半透明)。 注意: 若值为“black-translucent”将会占据页面px位置,浮在页面上方(会覆盖页面20px高度–iphone4和itouch4的Retina屏幕为40px)。--> <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" href="/static/images/identity/HTML5_Badge_64.png" /> <link rel="apple-touch-icon-precomposed" href="/static/images/identity/HTML5_Badge_64.png" /> <!--iOS用rel="apple-touch-icon"增加高光光亮的图标,rel="apple-touch-icon-precomposed"设计原图图标,另,android也能读取该图标。这样就能在用户把网页存为书签时,在手机HOME界面创建应用程序样式的图标。该路径需要注意的就是放到将网站的文档根目录下但不是服务器的文档的根目录。图片尺寸可以设定为57*57(px)或者Retina可以定为114*114(px),ipad尺寸为72*72(px)--> <link rel="apple-touch-startup-image" href="milanoo_startup.png" /> <!--启动界面的图片。该路径需要注意的就是放到将网站的文档根目录下但不是服务器的文档的根目录。官方规定启动界面的尺寸必须为 320*640(px),原本以为Retina屏幕可以支持双倍,但是不支持,图片显示不出来。--> <!--<meta name="apple-touch-fullscreen" content="yes">--> <!--这meta的作用就是删除默认的苹果工具栏和菜单栏。content有两个值”yes”和”no”,当我们需要显示工具栏和菜单栏时,这个行meta就不用加了,默认就是显示。--> <!--<meta name=”format-detection” content=”telephone=no” />--> <!--telephone=no禁止了把数字转化为拨号链接,仅苹果手机和平板,测试了下,好像不管用--> <!--<meta name="HandheldFriendly" content="true" />--> <!--针对plam和黑莓手机的设置--> <!--<meta name="MobileOptimized" content="width">--> <!--这个标记,有说是windows mobile的,也有说其它的,但是似乎没怎么用--> </head> <body> </body> </html>
相关文章推荐
- 手机网站和webapp开发默认页面
- 手机网站和webapp开发默认页面
- 手机网站开发-viewport-按照手机尺寸显示页面
- 用火狐浏览器进行网站的手机页面设计与开发
- jquery mobile开发手机webapp页面(二)上传功能
- jquery mobile开发手机webapp页面(三)拖动排序插件Sortable
- 微信H5页面开发、手机微商城、移动webApp开发
- HTML5手机网站开发页面宽度解决方案
- jquery mobile开发手机webapp页面
- wap手机网站开发过程中的小例子
- PHP 日本手机网站开发
- 手机网站开发必修课[2009总结版]
- 开发手机Widget关于页面css渲染的一点心得
- ASP.Net 手机网站开发(WAP)
- XHTML MP 基础(手机网站开发基础技术)
- 手机网站开发必修课[2009总结版]
- 手机网站开发必修课[1]:手机浏览器
- 手机网站开发总结版(zz)
- 手机网站开发必修课
- 网站开发 ---页面