-1
這裏沒有太多的評論...我試圖設置文本溢出省略號在一個div上,同時有一個固定的div與其他地方的背景頁面,這似乎並沒有在Firefox是工作(但與Chrome瀏覽器)......下面的代碼:省略號在火狐中沒有顯示固定div與背景顏色
.fixed {
position: fixed;
background-color: #fff;
}
.ellipsis {
width: 200px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
<div class="fixed">
asdf
</div>
<div class="ellipsis">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</div>
感謝您的回答,但它似乎並沒有工作......(仍在使用火狐) –
但它工作在這裏很好的http:/ /prntscr.com/enim0x你的Firefox是什麼版本? – Lucian
哦,對不起,沒有提及:它在代碼段中工作,但不在空白網頁上......我也可以在代碼片段中看到橢圓,但是當我將它複製粘貼到Sublime Text中並將其上傳到我的網站,它不顯示:/ –