TD标签限制字体长度
<td align="center"
title="${entity.positionName }"
style="max-width: 100px;overflow: hidden; text-overflow:ellipsis;white-space: nowrap">
${entity.positionName }</td>
------------------------------------------------------
限制字体长度 使用jstl标签
</c:choose>
<td align="center"
title="${entity.positionName }"
style="max-width: 100px;overflow: hidden; text-overflow:ellipsis;white-space: nowrap">
${entity.positionName }</td>
------------------------------------------------------
限制字体长度 使用jstl标签
<c:choose>
//超过10个长度则多余显示为"..." eg:"这里有十个字自己看吧..."
<c:when test="${!empty entity.bannerText && fn:length(entity.bannerText)> 10}">${fn:substring(entity.bannerText, 0, 10)}...</c:when>
//未超过则直接显示字符串
</c:choose>