可以在td中加div
css:
.detail{
text-overflow:ellipsis;
white-space:nowrap;
width:500px;
height: 20px;
overflow:hidden;
}
.detail:hover
{
text-overflow:inherit;
overflow:visible;
height: auto;
}
htnl:
<td><div class="detail">{$result.detail}</div></td>