我需要你们的建议。我正在开发一个手机网络浏览器应用程序,它将是纯html5。我希望该网络浏览器应用程序(不是本机应用程序)在每部手机的网络浏览器上运行,我的问题是
感谢您抽出时间...
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...
发布评论
评论(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>
我不认为您可以使用纯 JavaScript 来访问手机硬件功能。对于 GPS,我从未尝试过在移动网络应用程序上使用 HTML5 地理定位 API。但是有第 3 方桥接工具可以使您的 HTML5 Web 应用程序能够在硬件设备上访问并作为本机应用程序移植,它是 http:// phonegap.com .
希望这对你有帮助,如果我错了请纠正我:D
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/
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.
I don
t think you can access phone hardware feature by using pure javascript. For GPS, I
ve 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