.container { display: flex; flex-direction: column; width: 100%; .top-view { position: sticky; top: 0; z-index: 999; } .cell-view { display: flex; flex-direction: column; border-bottom: 1px solid #f0f0f0; align-items: center; margin: 0px 10px; align-content: center; text { padding-top: 10px; text-align: left; color: #666; font-size: 28rpx; height: 30px; width: 100%; margin-right: 5px; } .content { display: flex; flex-direction: row; flex-wrap: wrap; width: 100%; align-content: center; button { margin: 5px; height: 30px; color: #333; width: 17.3%; border-radius: 5px; font-size: 12px; } /* 选中时添加这个 样式 */ .active { background: #dae9fd; } /* 三角形 */ .active::before { content: ''; display: inline-block; position: absolute; right: 0; bottom: 0; width: 0; height: 0; border-bottom: 15px solid #407DB8; border-left: 14px solid transparent; } } button { color: #000; font-size: 24rpx; } } .shape, .neatness { height: 170px; } .color { height: 250px; } .certificate { height: 130px; } .qiegong, .duicheng, .polishing, .yingguang, .currency, .ctweight { height: 90px; } .buttom_view { display: flex; flex-direction: row; justify-content: space-between; margin-top: 20px; width: 90%; align-content: center; align-items: center; padding-left: 5%; van-button { width: 48%; color: white; } } }