css圆角梯形
.tabs-item { position: relative; width: 77px; height: 32px; line-height: 32px; padding: 0; text-align: center; color: #333; &::after { content: ''; position: absolute; top: 4px; left: 7px; right: 6px; bottom: 5px; background: #fff; border: 1px solid #ddd; border-radius: 6px 6px 0 0; transform: perspective(10px)scale(1.1, 1.3) rotateX(5deg); z-index: -1; } &.is-active { color: #fff; &::after { background: #1C4DBF; border-color: #1C4DBF; } } }
记录进步!!!