最後にツリードットを追加するテキストを切り刻む必要があります "..." 3 つのドットは、テキストの 2 行目にのみ表示されます。この jsfiddler は 1 行の例を示していますが、ドットを追加する前に 2 行のテキストを表示できませんでした。それを解決する方法はありますか?
http://jsfiddle.net/hT3YA/263/
#test {
background:#eee;
border:1px dotted #ccc;
margin:1em;
padding:5px;
width:100px;
height:200px;
}
.crop {
overflow:hidden;
white-space:nowrap;
text-overflow:ellipsis;
width:200px; }
<div id="test" class="crop">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged
</div>