移动网络浏览器上的 HTML5

发布于 2024-11-24 07:07:19 字数 293 浏览 2 评论 0 原文

我需要你们的建议。我正在开发一个手机网络浏览器应用程序,它将是纯html5。我希望该网络浏览器应用程序(不是本机应用程序)在每部手机的网络浏览器上运行,我的问题是

  • 如何针对不同的屏幕分辨率调整布局?如何实现跨平台兼容性,使其在每个设备上看起来都不错。我是否需要有 CSS 文件并具有不同分辨率的布局。

  • 如果我需要布局,是否有任何跨平台移动网络浏览器应用程序开发工具可以获取 html5 文件并生成具有不同分辨率布局的修改后的 htlm5 文件?

感谢您抽出时间...

I need your advice guys. I am developing a web browser application for mobile phones and it will be pure html5. I want that web browser application (not native application) to run on every mobile phone's web browser and my questions are

  • How I am going to adjust layout for different screen resolution? How can I achieve cross-platform compatibility make it look ok on every device. Do I need to do have a CSS file and have layouts for different resolutions.

  • If I need to have layouts, is there any cross platform mobile web browser application developing tool that gets html5 files and generates modified htlm5 files with layouts for different resolutions?

Thanks for your time...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

携余温的黄昏 2024-12-01 07:07:19
  1. 要自动调整屏幕分辨率,您可以使用第 3 方框架,例如 http://jquerymobile.com 、 < a href="http://jqtouch.com" rel="nofollow">http://jqtouch.com 和 http://www.sencha.com/products/touch/ 。但最广泛的跨浏览器兼容性是 jQueryMobile,请查看 http://jquerymobile.com/gbs/< /p>

  2. < p>我真的不知道你想要什么工具。但到目前为止我都是使用框架开发的,所以跨浏览器兼容性会不会那么痛苦。我使用“常用的 IDE”(例如 Aptana)以及带有 JSDT 的 Eclipse 来编写代码。

  3. 我不认为您可以使用纯 JavaScript 来访问手机硬件功能。对于 GPS,我从未尝试过在移动网络应用程序上使用 HTML5 地理定位 API。但是有第 3 方桥接工具可以使您的 HTML5 Web 应用程序能够在硬件设备上访问并作为本机应用程序移植,它是 http:// phonegap.com .

希望这对你有帮助,如果我错了请纠正我:D

  1. To automatically adapt the screen resolution, you can use 3rd party framwork such as http://jquerymobile.com , http://jqtouch.com , and http://www.sencha.com/products/touch/ . But the widest cross browser compatibility is jQueryMobile, take a look at http://jquerymobile.com/gbs/

  2. I don`t really know about the tools what you want. But so far I developed by using framework, so cross browser compatibilty will be less painful. I write the code by using 'commonly used IDE' such as Aptana, and Eclipse with JSDT.

  3. I dont think you can access phone hardware feature by using pure javascript. For GPS, Ive never tried to use HTML5 geolocation API on mobile web apps. But there is 3rd party bridging tools to make your HTML5 web apps to have access on hardware device and ported as native apps, it is http://phonegap.com .

Hope this help you, Correct me if I`m wrong :D

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文