请问怎么在WebView最顶层添加一个view或者其他组件 或者原生组件

发布于 7 年前作者 btang10979 次浏览最后编辑 7 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

  • 预期表现

  • 复现路径

  • 提供一个最简复现 Demo

想在WebView上面添加一个组件例如View 或者其他原生组件 可以做到吗

1 回复
xiuyingren
xiuyingren1 楼5 年前

不可以的,web-view自动铺满整个小程序页面的,可以参考文档:https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html