// 隐藏两个之后的所有Tag,并在第三个Tag之前展示... /deep/ .el-tag.el-tag--info:nth-child(n + 3) { width: 0; padding: 0; height: 0; margin: 0; color: rgba(255, 255, 255, 0); border-color: unset; background: none; i { display: none; } } /deep/ .el-tag.el-tag--info:nth-child(3) { position: relative; &:before { content: '...'; position: absolute; left: 4px; top: -12px; width: 26px; height: 24px; padding: 0 8px; line-height: 22px; font-size: 12px; background-color: #f4f4f5; color: #909399; box-sizing: border-box; border: 1px solid #e9e9eb; border-radius: 4px; } }