4
工作當使用文本溢出:省略號並且存在BR標籤在標記IE中然後第二線未被切斷。文本溢出:省略號不與<br>在IE
標記:
<div class="text">
really long text
<br/>
really long text
</div>
的CSS:
.text{
width: 50px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
輸出:
reall...
really long
精通ected(如何在其他瀏覽器上運行):
reall...
reall...
這裏是fiddle
善於觀察。 –
謝謝,將添加到該報告的小提琴 – ne4istb