.cut {display: inline-block;overflow: hidden;text-overflow: ellipsis; white-space: nowrap; width: 100%;}
应用:<span title="2.3.6" class="cut">2.3.6</span>
PS(title:鼠标移至文字显示全称内容)
.cut {display: inline-block;overflow: hidden;text-overflow: ellipsis; white-space: nowrap; width: 100%;}
转载于:https://www.cnblogs.com/shanny/p/5331988.html