English 中文(简体)
CSS:广泛移动装置的体积和体积
原标题:CSS: font-size, physical button height for a wide range of mobile devices

我正在开发一个网络应用程序,该软件在Peter和各种信使上运行。 我迄今已使用iUI framework。 iUI设计为P-3,在CSS中为电离层、线载荷等使用颜料。 但是,这一结果在一个新的三星I5500号卫星上无法使用,该星体的密度很高(240×320个粉碎机,2.8英寸=1143台)。 所有这些因素都太小。 在浏览器环境中可以部分补偿这种补偿,在浏览器中可部分补偿;可是,我不喜欢使用户改变其浏览器环境。

我的目标是,通过触及每一个环节和每个纽州,都能得到舒适的利用。 为此,我谨确保这一要素的体力最小。 简言之,CSS 2.1规格为:min-hal: 20mmmin-hal:0.8in。 简言之,我所有的电话都无视这一声明。 在3台Pily,该元素面积为11毫米,在3架I5500号(Andorid 2.1)中,在低温显示的HTC大火上,其面积为14毫米。 浏览像WebKit browser这样的低分辨率,如96dpi,使得这些内容难以读懂,几乎无法在高分辨率移动电话显示上点击。

blog post at sencha提供一些解决办法,建议通过某种浏览器的解说,确定纽芬兰人的所有大小、链接、在座标的清单上的物品和轮值(.one)。

他们还提到CSS3媒体问询,但指出,目前还不是:

@media screen and (min-resolution: 160dpi) {
    body {
      font-size: 114%;
    }
}

中文

<meta name="viewport" content="target-densitydpi=low-dpi" />

seems to help. It enlarges the page on devices with high-dpi more than on devices with low dpi. But the physical size of elements is still different. See also Android WebView.

The Android DisplayMetrics documentation with its density vs. scaledDensity brings more fuzziness than clarification.

因此,迄今为止,我发现最佳组合是Peter和Andan iUI,加上以超文本表示的以下声明:

<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;target-densitydpi=low-dpi;"/>

是否有现代、合法的方式来为各种移动装置确定自食堂和纽顿的宽度和高度?

Or which workaround do you use?

问题回答

I think the answer for you is the use of the EM unit instead of the pixel unit.

rel=“nofollow” http://www.w3.org/WAI/GL/cs2em.htm

这是一种比例性单位。 因此,你没有把你老板和纽子的大小作为固定号码,而是作为该装置的多功能。

它为获取任何途径和为什么大多数框架都是邪恶提供了最佳做法!





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签