我已经搜索了很长时间,但没有找到。
当元素(其他表)在其中时如何防止 html 表重新调整大小我希望元素在必要时从表中溢出。
table-layout:fixed;
上面的不行。
最佳答案
我从 here 得到这个.
您可以使用:
td {
max-width:30px;
overflow:hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
编辑:根据您要对文本执行的操作,省略号是可选的。
关于html - 防止 HTML 表格调整大小溢出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16197451/