【问题标题】:achieving same font size in all android devices在所有 android 设备上实现相同的字体大小
【发布时间】:2013-11-08 14:18:03
【问题描述】:

我正在使用 phonegap 开发一个混合移动应用程序。我想在所有 android/ios 设备上显示大小应该相似的文本。它应该适用于所有分辨率。

 <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width target-densitydpi=device-dpi" />

条件是这样的,

我只是想避免像

这样的媒体查询
@media only screen and  and (-webkit-max-device-pixel-ratio : 1){
        .todo-actions{
            font-size: 70%;
    }
}

@media only screen  and (-webkit-min-device-pixel-ratio : 1.5) and (-webkit-max-device-pixel-ratio : 1.9){

        .todo-actions{
        font-size: 120%;
    }
}

【问题讨论】:

    标签: android cordova webview hybrid-mobile-app


    【解决方案1】:

    我在这里找到了解决方案:

    https://stackoverflow.com/a/26537865

    从元标记中删除 target-densitydpi=device-dpi

    【讨论】:

      猜你喜欢
      • 2015-10-29
      • 1970-01-01
      • 2016-09-19
      • 1970-01-01
      • 1970-01-01
      • 2021-01-15
      • 2017-09-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多