.line (@position: "left") { border-@{position}: 1px solid #8d8d8d; } .clearfix() { &:after, &:before { content: " "; display: table; } &:after { clear: both; } } // No Scrollbar .no-scrollbar() { &::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; -webkit-appearance: none; opacity: 0 !important; } } .ellipsis() { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; word-wrap: break-word; } .flex(@align: center, @justify: center) { display: flex; align-items: @align; justify-content: @justify; } //超出显示省略号 .ellipsis() { overflow: hidden; //超出的文本隐藏 text-overflow: ellipsis; //溢出用省略号显示 white-space: nowrap; //溢出不换行 }