我想创建一个网站,行为像一个应用程序。这是超级简单,但我仍然无法弄清楚如何让它工作...iPhone优化的2页“应用程序”(网站)
它基本上是一个图像,当你从主屏幕启动应用程序时会显示(我需要以某种方式使地址&导航栏消失)。当你点击图片时,它应该显示下一张图片。
我试图与这行代码
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<!-- this is the part responsible for hidding the bottom bar -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="apple-touch-icon" href="images/template/engage.png"/>
和图像编码这样
<a href="xxx.html">
<img src="xxxx.png"/>
</a>
但问题是,图像不大小调整到iPhone屏幕上,他们变得更大,所以你必须滚动才能看到整个图像。
此外,无论何时按下图像链接,都会打开一个新的Safari浏览窗口并包含Safari浏览栏&地址栏。
任何人都知道我可以做这个工作吗?
在此先感谢..
这似乎是正确的,除非你需要最大宽度:100%:) –