1.单行省略号:
CSS:需要加上宽度(100px)、超出隐藏(overflow:hidden;)、强制在同一行显示(white-space: nowrap;)、省略号(text-overflow:ellipsis;)
示例:p{ 100px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
2.多行省略:
引入js:<script src="../../Scripts/jQuery.dotdotdot-master/src/jquery.dotdotdot.min.js"></script>
$('.pic_txt td').dotdotdot({
wrap: 'letter',
height: 40,
tolerance: 10
});