第一步:
table {table-layout:fixed;}列寬由表格寬度和列寬度設定,不隨文字多少變化
第二步:
td {
white-space:nowrap;/*文本不會換行,文本會在在同一行上繼續,直到遇到 <br> 標簽為止。*/
overflow:hidden;/*隱藏多余的內容*/
text-overflow:ellopsis;/*顯示省略符號來代表被修剪的文本 for IE*/
-moz-text-overflow: ellipsis; /* for Firefox,mozilla */
}