function removeClassType($this) {
$($this).attr("title",$this.innerText);
}
调用
<td onmousemove="removeClassType(this)">{$vo.order_number??''}</td>
<style>
table { table-layout: fixed;}//一定要加这个,如果是table的话
td {
width: 200px;
white-space: nowrap!important;
/* 2.超出的部分隐藏 */
overflow: hidden!important;
/* 3.文字用省略号替代超出的部分 */
text-overflow: ellipsis!important;
}
</style>