您的位置:首页 > 其它

表格里使用text-overflow后不能隐藏超出的文本的解决方法

2016-12-10 13:41 585 查看
可以在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>



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐