简体   繁体   English

HTML5和CSS与移动应用程序开发-跨平台布局

[英]HTML5 and CSS with mobile app development - Cross platform layouts

Iv been using phonegap for sometime, and I was wondering what you do with regard to cross platform development. 一段时间以来,我一直在使用phonegap,而我想知道您如何处理跨平台开发。 Now this is great for "cross platform" but I think the CSS layouts is the trick here.. 现在,这对于“跨平台”非常有用,但是我认为CSS布局是这里的窍门。

What im referring to here is layouts. 我在这里指的是布局。 With iPhone its easy, there are two possible sizes so thats no biggy. 借助iPhone的便捷性,它有两种可能的尺寸,因此不必担心。

I was wondering how you do your css for Android and Ios? 我想知道您如何在Android和Ios上使用CSS? I mean Android has so much devices each with their own sizes. 我的意思是Android拥有如此多的设备,每个设备都有各自的大小。

I use % widths and heights and that works well I guess, but sometimes you have to have specific heights with lets say n iScroll element or something. 我使用%widths和heights,效果很好,但我想有时候您必须使用iScroll元素之类的东西来指定特定的高度。 How do you design your CSS or Javascript for this? 您如何为此设计CSS或Javascript?

for iScroll you can specify min-height . 对于iScroll,您可以指定min-height if content exeeds the minimum height it adjusts the height according to content length. 如果内容超出最小高度,则根据内容长度调整高度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM