小程序webview无法自适应问题?跳转页面出现样式错乱问题。

小程序 文章 2020-08-14 11:01 1107 0 全屏看文

AI助手支持GPT4.0

小程序webview无法自适应问题?跳转页面出现样式错乱问题。The problem that the applet webview cannot be adapted? The style of the jump page appears disorderly.

小程序webview无法自适应问题?跳转页面出现样式错乱问题。

第一次进入web-view样式是正常的,

然后web-view跳转到小程序的登录页面,登录完成,跳转回web-view,出现样式错乱问题。

之前安卓的web-view也出现过,但是可以设置自适应解决。微信小程序web-view怎么设置自适应???

It is normal to enter the web view style for the first time, and then the web view will jump to the login page of the applet. After the login is completed, it will jump back to the web view, resulting in the disorder of the style. Android web view has also appeared before, but you can set the adaptive solution. How to set self adaption for wechat applet web view???

回答:

貌似祸害:

h5适配方案用的是哪套?是不是加载自适应代码的时间不对

圣殿骑士:

检查下 H5 css的media query写的对不对

1005:

这是你本身h5页面的问题

Ro:这样?    为什么第一次进入不会出问题
空:

rpx

Ro:那个是嵌套的H5,不是原生小程序页面

-EOF-

AI助手支持GPT4.0