银河S3 ..视meta标签doesns't工作 [英] galaxy S3.. viewport meta tag doesns't work

查看:184
本文介绍了银河S3 ..视meta标签doesns't工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在其上使用中等DPI在视口中meta标签像下面的。

I'm currently working on the web app which use medium-dpi in viewport meta tag like the below.

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

当我测试一个星系S3设备上,视似乎无法正常工作。

When I test it on a galaxy S3 device, viewport seems not work correctly.

我看到这种事情在Android的4.0.2。在Android的4.0.2,我听到Android操作系统本身具有无法正确应用视错误。

I saw this kind of thing in Android 4.0.2. In android 4.0.2, i heard android OS itself has bug that can't apply the viewport correctly.

任何人有任何想法?

推荐答案

我居然发现了一条重要线索。

I actually found an important clue.

<一个href=\"http://developer.android.com/guide/webapps/targeting.html\">http://developer.android.com/guide/webapps/targeting.html

的值小于(或等于)320结果在一个值等于设备宽度

" values less than (or equal to) 320 result in a value equal to the device-width "

所以,做好WIDTH = 320,一个典型的设置它从IPhone迁移,它似乎并没有工作。

So, Doing "Width=320", a typical setting it migrating from the IPhone, it does not seem to work.

将它设置为321,和它的作品!

Set it to 321, and it works!

在测试了星系S3,剧本,GALAXY NOTE

Tested on galaxy s3, playbook, galaxy note

这篇关于银河S3 ..视meta标签doesns't工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆