Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找到了很多方法来测量宽度和使用 jquery 截断文本,但我找不到基于高度的方法。
我仅限于两行文字,否则我的设计会失控。
那么有谁知道将段落限制为两行高、截断它并添加一个椭圆的方法?
CSS溢出并<div>...</div>位于底部?
<div>...</div>