机器人的WebView似乎忽略"视"网页上的信息机器人、网页、信息、QUOT

2023-09-06 00:35:14 作者:遮半面。

我有一个使用视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