在uni-app中覆盖web-view,需求是在上面加一个自己的样式,覆盖在web-view上面
注意: 微信开发者工具上是看不到效果的,请用真机查看

直接在web-view中写cover-view,然后给cover-view 设置一个 z-index:"999999" 设置大点

web-view中不能写view标签了,不然无法实现覆盖,要么使用cover-view 和 cover-image

<web-view src="http://baidu.com">
            <cover-view class="footer">
                <cover-view class="return" @click="btn_back">
                    返回
                </cover-view>
            </cover-view>
        </web-view>

 

相关文章:

  • 2021-10-29
  • 2021-05-16
  • 2021-05-25
  • 2021-09-25
  • 2022-12-23
  • 2021-08-07
  • 2021-06-12
猜你喜欢
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案