GarrettZhang
2/4/2018 - 9:10 AM

文本溢出

/*多行文本溢出*/
.intwoline {
  display: -webkit-box!important;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/*单行文本溢出*/
.inaline { 
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}