.page-body { display: flex; background: #fff; overflow: hidden; position: fixed; } .nav { display: flex; width: 100%; } .nav-left { width: 25%; background: #fafafa; } .nav-left-item { height: 100upx; border-right: solid 1px #f1f1f1; border-bottom: solid 1px #f1f1f1; font-size: 30upx; display: flex; align-items: center; justify-content: center; } .nav-left-item:last-child { border-bottom: none; } .nav-right { width: 75%; } .box { display: block; overflow: hidden; border-bottom: 20upx solid #f3f3f3; /* min-height: 100vh; */ /*若您的子分类过少想使得每个子分类占满屏请放开上边注视 */ } .box:last-child { border: none; min-height: 100vh; } .nav-right-item { // width: 30%; width:29%; min-height: 220upx; float: left; text-align: center; padding: 11upx; font-size: 28upx; } .nav-right-item image { width: 120upx; height: 120upx; } .active { color: #ff80ab; background: #fff; border-right: 0; } ::-webkit-scrollbar { width: 0; height: 0; color: transparent; } .right_item_name{ width: 100%; // text-align: left; word-break: break-all; word-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } ::v-deep .u-sticky{ top: 153rpx !important; }