小程序中使用webview引入H5页面之后覆盖了小程序原有页面,有没有大佬知道怎么解决呢?
发布于 6 年前 作者 gongtao 5750 次浏览 来自 问答

<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 回复

不能解决,默认全屏

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

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

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

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

回到顶部