当前位置:网站首页>Style modification of Mui bottom navigation
Style modification of Mui bottom navigation
2022-07-02 06:00:00 【Serena_ tz】
Problems encountered : Want to be MUI The bottom navigation bar plus an upper border and upper and inner margins are not displayed , But other styles of operating the navigation bar will show . Last , It was found that the problem reserved for the navigation bar at the beginning was not enough . therefore , When there is no response to the modified style, we should consider whether it is blocked by other elements .
Use MUI The bottom navigation bar of wants to modify the navigation top split line .
.mui-bar-tab {
background-color: #fff;
height: 49px;
box-shadow: 0px 0px 8px 0px rgba(102,102,102, 0.6);
padding-top: 5px;
}
When adding sub pages, reserve space for the bottom navigation .
var firstBack = null; // Record the first click back event
let plusReadyChildren = ['home']; // The record has plusReady Of the subpage of id. Subpage plusReady This array will be written after
var styles = {
top: '0px',
bottom: '50px',
scrollIndicator: 'none'
};
Above bottom The value of is 50px, So the bottom navigation bar only 50px The location of .
It is best to use lines to set the navigation bar split line , Because the shadow has an area , It's hard to reserve a place for them to show .
边栏推荐
- Generics and generic constraints of typescript
- 经典文献阅读之--Deformable DETR
- 深度学习分类网络--VGGNet
- 1035 Password
- Can't the dist packaged by vite be opened directly in the browser
- Shenji Bailian 3.52-prim
- MySQL transaction and isolation level
- [C language] simple implementation of mine sweeping game
- 深度学习分类网络 -- AlexNet
- Matplotlib double Y axis + adjust legend position
猜你喜欢

Practice C language advanced address book design

memcached安装

Vscode paste image plugin saves image path settings

3D printer G code command: complete list and tutorial

深度学习分类网络--Network in Network

51单片机——ADC讲解(A/D转换、D/A转换)

Conglin environmental protection rushes to the scientific and Technological Innovation Board: it plans to raise 2billion yuan, with an annual profit of more than 200million yuan

uni-app开发中遇到的问题(持续更新)

正则表达式总结

Software testing - concept
随机推荐
STC8H8K系列匯編和C51實戰——數碼管顯示ADC、按鍵串口回複按鍵號與ADC數值
Keepalived installation, use and quick start
Several keywords in C language
How to write good code - Defensive Programming Guide
页面打印插件print.js
【LeetCode】Day92-盛最多水的容器
1035 Password
c语言中的几个关键字
"Simple" infinite magic cube
经典文献阅读之--SuMa++
数理统计与机器学习
Scheme and implementation of automatic renewal of token expiration
ES6的详细注解
Unity Shader 学习笔记(3)URP渲染管线带阴影PBR-Shader模板(ASE优化版本)
Gcnet: non - local Networks meet Squeeze excitation Networks and Beyond
Linkage between esp8266 and stc8h8k single chip microcomputer - Weather Clock
Eco express micro engine system has supported one click deployment to cloud hosting
如何使用MITMPROXy
Comment utiliser mitmproxy
深度学习分类网络--Network in Network