<html> | |
<body> | |
<style> | |
table{ | |
table-layout:fixed; | |
} | |
td{ | |
overflow:hidden; | |
text-overflow:ellipsis; | |
white-space:nowrap; | |
} | |
</style> | |
<table class="tbl" border=1 width=200> | |
<tr> | |
<td width=25% class="td" nowrap>abcdefghigklmnopqrstuvwxyz 1234567890</td> | |
<td width=25% class="td" nowrap><div>abcdefghigklmnopqrstuvwxyz 1234567890</div></td> | |
<td width=25% class="td" nowrap>abcdefghigklmnopqrstuvwxyz 1234567890</td> | |
</tr> | |
</table> | |
</body> | |
</html> |
html文本超出用省略号表示
最新推荐文章于 2023-06-01 19:38:03 发布