0
点赞
收藏
分享

微信扫一扫

uniapp如何修改tabBar的的样式

在项目根路径下的App.vue文件,增加以下代码:

<style lang="scss">

uni-tabbar {
.uni-tabbar { // tab背景
background-image: linear-gradient(to top, #FAF8F8, #FFFFFF)!important; // tab背景图片或者渐变色,背景色和背景图片最多选择一个进行设置
.uni-tabbar-border { // tabBar上边框
background-color: #F7F4F4!important; // tabBar上边框的颜色
}
.uni-tabbar__bd { // tabBar单项
.uni-tabbar__icon { // 图标
width: 48upx!important;
height: 48upx!important;
}
.uni-tabbar__label { // 文字
font-size: 20upx!important;
}
}
}
}
</style>


举报

相关推荐

0 条评论