小程序中使用webview引入H5页面之后覆盖了小程序原有页面,有没有大佬知道怎么解决呢?

发布于 8 年前作者 gongtao5940 次浏览最后编辑 8 年前来自 ask

<web-view src="xxxxxxxxx" class="op">

  <button open-type="contactclass='kf details_buttonsend-message-img="/images/btn.jpgshow-message-card="true"

    send-message-path="../index/index">

  </button>

</web-view>

4 回复
pengyang
pengyang1 楼5 年前

不能解决,默认全屏

xuguiying
xuguiying2 楼5 年前

自动铺满就没有层级一说了 意思就是这个页面只会显示web-view ,其他都不好使

fjin
fjin3 楼5 年前

页面只要使用webview就会覆盖页面的所有内容

可以考虑 点击按钮跳转一个新的页面去展示webview嵌套的H5页面

xielei
xielei4 楼5 年前

你这么优秀,怎么就是不会看文档呢