如何固定td的高度

加个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">

posted @ 2010-05-09 15:08  hzucmj  阅读(3668)  评论(0编辑  收藏  举报