爲什麼 overflow:hidden;text-overflow:ellipsis;在table的td中失效沒有...出現呢?
廢話不多少直接上解決方案:
在table的css樣式中設置:table-layout:fixed;
在table td的css樣式中設置: overflow:hidden;text-overflow:ellipsis;
這就是你想要的效果了。
爲什麼 overflow:hidden;text-overflow:ellipsis;在table的td中失效沒有...出現呢?
廢話不多少直接上解決方案:
在table的css樣式中設置:table-layout:fixed;
在table td的css樣式中設置: overflow:hidden;text-overflow:ellipsis;
這就是你想要的效果了。
首先應該在pom中添加以下插件,跳過test,否則打包會報錯。 <plugin> <groupId>org.apache.maven.plugins</groupId>
文章目錄設置java的編譯級別設置快捷鍵去掉未使用的警告設置字符集編碼 設置java的編譯級別 必須關閉所有項目進行下面操作 設置快捷鍵 去掉未使用的警告 設置字符集編碼