当前位置:网站首页>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 :
边栏推荐
- Hcia-r & s self use notes (26) PPP
- [sword finger offer] - explain the library function ATOI and simulate the realization of ATOI function
- [untitled]
- Set the background color of a cell in the table
- 【电子电路】ADC芯片如何选型
- Masscan使用教程.
- paddle.fluild常量计算报错‘NoneType‘ object has no attribute ‘get_fetch_list‘
- ·Let's introduce ourselves to the way of programming·
- 公众号不支持markdown格式文件编写怎么办?
- 基础爬虫实战案例之获取游戏商品数据
猜你喜欢
Clickhouse learning (VIII) materialized view
[electronic circuit] how to select ADC chip
公众号不支持markdown格式文件编写怎么办?
Three handshakes and four waves for the interview summary
实现table某个单元格背景色设置
Set the background color of a cell in the table
Day 1
[C language series] - constants and variables that confuse students
uniapp组件之tab选项卡滑动切换
ClickHouse学习(七)表查询优化
随机推荐
Camunda 1、Camunda工作流-介绍
Common characteristic engineering operations
link与@import导入外部样式的区别
Flask 报错 RuntimeError: The session is unavailable because no secret key was set.
Solve the problem that the prompt information of form verification does not disappear and the assignment does not take effect
解决表单校验提示信息不消失问题以及赋值不生效问题
[C language series] - string + partial escape character explanation + annotation tips
Question swiping Madness - leetcode's sword finger offer58 - ii Detailed explanation of left rotation string
用sql-client.sh生成的job在cancle过后 如何实现断点续传?
虚拟增强与现实第二篇 (我是一只火鸟)
Terminal shell common commands
Summary of knowledge points related to forms and forms
·Let's introduce ourselves to the way of programming·
[C language series] - realize the exchange of two numbers without creating the third variable
Longest string without duplicate characters
Liang Yuqi, founder of aitalk: the link between image and virtual reality
HCIA-R&S自用笔记(25)NAT技术背景、NAT类型及配置
Camunda 1. Camunda workflow - Introduction
VIM editor use
全局components组件注册