如何固定td的高度

来源:互联网 发布:java重载的条件 编辑:程序博客网 时间:2024/04/29 04:00
加个css就能搞定,你的意思是先把td固定住,然后输入的内容td装不下了就变成...是吧!
把这个加到你的css文件里
.ctltable{
border-collapse: collapse;
table-layout:fixed}
.ctltable td {
text-overflow:ellipsis;
overflow:hidden;
white-space: nowrap;
padding:2px}

ctltable加在table上就可以了 <table class="ctltable">
原创粉丝点击