antd表格使用ellispsis:true超出顯示省略火狐兼容問題

使用antd中的ellispsis:true實現超出顯示省略…時,火狐中不兼容
在這裏插入圖片描述

其他瀏覽器
在這裏插入圖片描述

火狐
在這裏插入圖片描述
解決方案:在css中加入

//兼容火狐超出顯示...
.ant-table-row-cell-ellipsis a{
    display: block;
    width:100%;
    overflow: hidden;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章