字太多發動省略功能的 CSS 三兄弟


Posted by Rich on 2021-09-12

overflow: hidden; // 超出就隱藏
text-overflow: ellipsis; // 字超出就變 ...
white-space: nowrap; // 好像是不換行?

解釋還不保證 100% 對。但這三個真的好用。










Related Posts

Letter Combinations of a Phone Number

Letter Combinations of a Phone Number

演算法 1:做菜與演算法、複雜度與大歐小歐

演算法 1:做菜與演算法、複雜度與大歐小歐

原來 CORS 沒有我想像中的簡單

原來 CORS 沒有我想像中的簡單


Comments