分类
Uni-app

uni-app学习笔记(一)

1.强制横屏
page.json 文件

"globalStyle": {
        "navigationBarTextStyle": "black",
        "navigationBarTitleText": "uni-app",
        "navigationBarBackgroundColor": "#F8F8F8",
        "backgroundColor": "#F8F8F8",
        "pageOrientation": "landscape", //强制横屏
    }

2.沉浸式设置
page.json 文件

"globalStyle": {
        "navigationBarTextStyle": "black",
        "navigationBarTitleText": "uni-app",
        "navigationBarBackgroundColor": "#F8F8F8",
        "backgroundColor": "#F8F8F8",
        "navigationStyle":"custom" //沉浸式设置
    }

发表评论

电子邮件地址不会被公开。 必填项已用*标注