机器人的WebView似乎忽略"视"网页上的信息 [英] Android WebView seems to ignore "viewport" information on web pages

查看:137
本文介绍了机器人的WebView似乎忽略"视"网页上的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用视META标记告诉移动浏览器如何显示内容()网站。在Android浏览器中查看的页面看起来是正确的(和iPhone等)。

I have a website that is using the viewport META tag to tell mobile browsers how to display content ( ). Viewing the page in the Android browser looks correct (and iPhone, etc).

在我的网页加载到一个Android应用程序的WebView组件,web视图忽略的视口标签,并在全的决议,这是放大,在这种情况下,呈现页面。

When I load the page into a WebView component in an android Application, the WebView ignores the "VIEWPORT" tag, and renders the page at "full" resolution, which is zoomed-in in this case.

推荐答案

仔细检查您的实现对建立网页,以支持不同的屏幕密度的的WebView第文档: http://developer.android.com/reference/android/webkit/ WebView.html

Double-check your implementation against the "Building web pages to support different screen densities" section of the WebView documentation: http://developer.android.com/reference/android/webkit/WebView.html

这篇关于机器人的WebView似乎忽略"视"网页上的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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