<div class="abs-right_name" title="${item.address?default('')}">地址:<em>${item.address?default('')}</em></div>
这里使用了freemarker的,你可以把变量直接设置成一段文字测试下~~~ (上面是js,下面是css)
.abs-right_name{ height:20px; line-height:20px; width:206px; overflow:hidden;text-overflow:ellipsis; white-space:nowrap;}
关键的就是text-overflow:ellipsis;