.tab-view { position: sticky; top: 0; z-index: 999; } .cers { display: flex; flex-wrap: wrap; margin-top: 15px; align-items: center; width: 100%; button { width: 17%; font-size: 13px; margin-bottom: 10px; } /* 选中时添加这个 样式 */ .active { background: #dae9fd; } /* 三角形 */ .active::before { content: ''; display: inline-block; position: absolute; right: 0; bottom: 0; width: 0; height: 0; border-bottom: 15px solid rebeccapurple; border-left: 14px solid transparent; } } .container { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; align-content: center; width: 100%; .input-view { margin: 20px 0px; width: 100%; display: flex; flex-direction: column; align-items: center; align-content: center; margin-bottom: 10px; .field-view { width: 95%; } .label { width: 100%; text-align: center; font-size: 15px; color: #333; height: 35px; margin-top: 10px; } } } .button-view { display: flex; justify-content: space-between; margin: 10px 10px 10px 10px; van-button { width: 48%; height: 40px; } }