New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在安卓app中viewport无效 #29
Comments
<meta name="hotcss" content="initial-dpr=1">
|
|
让安卓开发打开debug开关,然后PC Chrome远程调试一下页面。定位一下问题。 安卓webview开启debug方法如下: if (Build.VERSION.SDK_INT >=Build.VERSION_CODES.KITKAT) {
WebView.setWebContentsDebuggingEnabled(true);
} |
之前debug过,dpr和meta设置都是对的,只是scale的效果并没有生效 |
这个问题配合安卓开发debug下吧。纯前端已然看不出任何问题了。先close掉。任何疑问随时联系。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我们公司的安卓app内置的webview当中viewport好像并没有生效,1px的线还是那么粗!尝试做了 settings.getUserAgentString();
//增加下面两行代码:
settings.setUseWideViewPort(true);
settings.setLoadWithOverviewMode(true);
但还是没有效果,请问是需要其他的什么配置吗?
The text was updated successfully, but these errors were encountered: