/**index.wxss**/ .container { width: 100%; height: 100%; } .menu-tabs .van-tab{ color: #98CDFF; /* 字体颜色 */ background-color: #006BFF;/* 标签背景颜色 */ } .menu-tabs .van-tab--active{ color: #FFFFFF; /* 字体颜色 */ font-size: 17px; } .menu-tabs .van-tabs__line { background: transparent; } .nav { /* 设置tab-nav宽高度 */ height: 80rpx; width: 100%; /* 假如您需要并排放置两个带边框的框, 可通过将 box-sizing 设置为 "border-box"。 */ box-sizing: border-box; overflow: hidden; /* 居中 */ line-height: 80rpx; background: #006BFF; font-size: 28rpx; color: rgba(250, 242, 242, 0.973); /* 规定段落中的文本不进行换行: */ white-space: nowrap; position: fixed; top: 0; left: 0; z-index: 99; } .nav-item { width: 20%; display: inline-block; text-align: center; } .nav-item.active { color: rgb(255, 255, 255); font-size: 38rpx; } .tab-box { background: rgb(255, 255, 255); /* 这里设置成nav的高度 */ padding-top: 80rpx; height: 100%; box-sizing: border-box; } .tab-content { /* 裁剪 div 元素中内容的左/右边缘 - 如果溢出元素的内容区域的话: */ overflow-y: scroll; } .main { background-color: #F9F9F9; min-height: 100vh; } .mat_title { color: #999999; font-size: 24rpx; margin-bottom: 16rpx; } .mat_num { font-weight: 900; font-size: 28rpx; } .mat_image { width: 100rpx; height: 100rpx; /* background: linear-gradient(180deg, #FFB17C 0%, #FFDBC3 100%); */ border-radius: 8rpx; } .mat_top { padding: 16rpx; display: flex; justify-content: space-between; } .mat_bottom { width: 328rpx; height: 76rpx; border-radius: 0rpx 0rpx 10rpx 10rpx; font-size: 28rpx; font-family: PingFangSC-Semibold, PingFang SC; font-weight: 600; color: #333333; line-height: 28rpx; display: flex; align-items: center; justify-content: center; } .mat_card { background-color: white; width: 300rpx; height: 404rpx; margin: 10rpx 15rpx; border-radius: 16rpx; margin-bottom: 32rpx; } .mat{ width: 686rpx; padding-top: 24rpx; margin-left: 32rpx; margin-right: 32rpx; /* min-height: 100vh; */ display: flex; flex-wrap: wrap; justify-content: space-between; } van-tabs { color: #000; width: 100%; height: 50rpx; line-height: 50rpx; background-color: #027AFF; } van-tab { background: #bb5050; width: 50rpx; height: 40rpx; } .van-tab__pane van-tab__pane--active{ background: #bb5050; width: 50rpx; height: 40rpx; }