三行 css 簡單完成文字截短效果 (truncate) 可以只用 css 就完成文字截短 不需要另外寫程式處理
{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
ref.