您可以单独使用CSS来做到这一点:
.@R_101_2419@ {
-o-text-overflow: ellipsis; /* Opera */
text-overflow: ellipsis; /* IE, Safari (WebKit) */
overflow:hidden; /* don't show excess chars */
white-space:Nowrap; /* force single line */
width: 300px; /* fixed width */
}
注意:您将需要检查最新的浏览器支持。