当前位置:网站首页>Display effect of uniapp page title
Display effect of uniapp page title
2022-07-29 05:41:00 【Weisen】
One 、 Title display and no display
By default, the page displays the title , If the title is not displayed , Just add " navigationStyle":"custom "
"globalStyle": {
// The title at the top of the page shows
// "navigationStyle":"custom",
"navigationBarTextStyle": "white",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#ff0000",
"backgroundColor": "#0055ff"
}Two 、 Title Dynamic change display
You need to dynamically change the title of the page , Just add the following methods , Variable title The content in can be changed into dynamic variables from the back end , So as to realize the dynamic change of the title .
uni.setNavigationBarTitle({
title:"uniapp Study "
});3、 ... and 、 Title transparent gradient display effect
After sliding a certain distance on the page , The effect of gradient display of page title , Just in pages.json In file , Make the following configuration :
"pages": [ //pages The first item in the array represents the application startup page , Reference resources :https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": " The title shows ",
"app-plus":{
"bounce":"none" ,
"titleNView": {
"backgroundColor": "#ff0000",// Displayed background color
"type": "transparent" // Transparent gradient navigation bar
}
}
}
}
],The effect is as follows :

边栏推荐
- 虚拟增强与现实第二篇 (我是一只火鸟)
- [typescript] type reduction (including type protection) and type predicate in typescript
- 【JS题解】牛客网JS篇1-10题
- uniapp组件之tab选项卡滑动切换
- Masscan使用教程.
- HCIA-R&S自用笔记(24)ACL
- 移动端-flex项目属性
- Basic use of redis
- paddle. Fluid constant calculation error 'nonetype' object has no attribute 'get_ fetch_ list‘
- Similarities and differences between REM and PX and EM
猜你喜欢

ClickHouse学习(十一)clickhouseAPI操作

微信小程序-屏幕高度
![[C language series] - realize the exchange of two numbers without creating the third variable](/img/7c/468000bcbf740c9dd3535f2734728a.png)
[C language series] - realize the exchange of two numbers without creating the third variable

Li Kou 994: rotten orange (BFS)

ClickHouse学习(三)表引擎

ClickHouse学习(十)监控运行指标

shell基本操作(下)

Qtcreator+cmake compiler settings

力扣994:腐烂的橘子(BFS)

Provincial and urban three-level linkage (simple and perfect)
随机推荐
paddle. Fluid constant calculation error 'nonetype' object has no attribute 'get_ fetch_ list‘
弹性盒子flex
Cmu15-213 shell lab experiment record
移动端-flex项目属性
Solve the problem that the prompt information of form verification does not disappear and the assignment does not take effect
力扣994:腐烂的橘子(BFS)
字符类型转换
Set the background color of a cell in the table
Question swiping Madness - leetcode's sword finger offer58 - ii Detailed explanation of left rotation string
Thrift安装手册
Redirection and files
个人学习笔记
redis的基本使用
[C language series] - realize the exchange of two numbers without creating the third variable
[C language series] - storage of deep anatomical data in memory (II) - floating point type
Using POI TL to insert multiple pictures and the same data of multiple rows of cells into the table cells of word template at one time, it is a functional component for automatic merging
AR虚拟增强与现实
uniapp组件之tab选项卡滑动切换
无重复字符的最长字串
C language file operation