uniapp发布H5,怎样去掉标题栏?
参考:https://blog.csdn.net/mangguodashiye/article/details/102485867
·
参考:https://blog.csdn.net/mangguodashiye/article/details/102485867
一、问题:uniapp 项目,webview打包h5网站成app,取消webview双标题栏:
在index.vue使用webview加载h5网站:
<template>
<web-view src="https://www.mysite.com"></web-view>
</template>
webview出现双标题栏
二、解决办法:
pages.json的“globalStyle”中添加一行:"navigationStyle":"custom", 如下所示:
更多推荐
已为社区贡献3条内容
所有评论(0)