一、创建CSS样式
.bm1{ width:300px;
text-align:left;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;}
二、jsp中使用 label 中 title 属性,将所需显示的内容赋值给到 title 值
<label class="bm1" title="${obj[1]}">${obj[1]}</label>
一、创建CSS样式
.bm1{ width:300px;
text-align:left;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;}
<label class="bm1" title="${obj[1]}">${obj[1]}</label>