.main_bar { width: 100%; border-top: 1rpx solid #ebebeb; position: fixed; bottom: 0; left: 0; z-index: 10000; display: flex; justify-content: space-around; } .tabbar_item { position: relative; height: 100%; float: left; text-align: center; padding: 0px 0; } .tab_img { display: flex; justify-content: center; align-items: center } .nav_imgage { height: 52rpx; width: 52rpx; background-position: center; background-repeat: no-repeat; background-size: 100%; } .cart_num { top: 0; background-color: red; color: #fff; font-size: 20rpx; border-radius: 50%; width: 40rpx; line-height: 40rpx; height: 40rpx; position: absolute; z-index: 100; right: 30rpx; }