收藏
回答

webview页面无法展示返回 app按钮

问题类型 API/组件名称 微信版本 基础库版本
Bug webview组件 8.0.67 3.12.1

<view class="container">

  <!-- web-view容器 -->

    <web-view src="{{webUrl}}" class="web-view">

      <view class="back-app-btn">

        <button open-type="launchApp" app-parameter="wechat" binderror="launchAppError">返回APP</button>

      </view>

    </web-view>

</view>

页面渲染时,只能看到按钮一闪消失,无法展现在 webview 上,这是什么原因?

从 app 跳转过来也无法展示。

回答关注问题邀请回答
收藏

2 个回答

  • 一
    01-21

    web-view 会自动铺满整个小程序页面

    

    https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html

    01-21
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    01-21
    有用
登录 后发表内容