基于预定义比例的动态内容省略

时间:2016-08-29 13:13:57

标签: html css css3 flexbox

我有以下卡片模板:pen。它由两部分组成"一部分"和"两个"。

<div id="one">
   <div id="two">
  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's...
   </div>
   <div id="three">
   Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been...
   </div>
</div>

这两个部分的内容都超出了各自的大小。我想最大化#two div,以便最大化(以及其余的省略号)并为#three div留一行。

如果#two没有足够的内容,请采用相应的尺寸并将所有尺寸保留为#three

编辑:

我想修正宽度并允许高度增长到一定限度然后省略

0 个答案:

没有答案
相关问题