<style>
.css2 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 16em;
}
</style>
引用样式
<span class="css2" title="${ques.qcontent}">${ques.qcontent}</span>
title就是鼠标悬停显示的全部内容