解决火狐字体溢出问题(兼容问题)

【问题】

【原因】

浏览器兼容性问题

【解决】

加入样式即可

white-space:nowrap;/*强制文本在一行内显示*/
text-overflow:ellipsis; /*溢出省略号,支持ie、safari(webkit)*/
-o-text-overflow:ellipsis; /*溢出省略号,支持opera*/
overflow:hidden;/*溢出隐藏*/
-moz-binding:url('ellipsis.xml#ellipsis');/*溢出省略号,支持firefox*/}
<style type="text/css">
    .cl
    {
         word-wrap:break-word;
         word-break:break-all;         overflow: hidden;
    }
</style>

【效果】

 

posted @ 2021-07-05 10:03  changlinlo  阅读(259)  评论(1编辑  收藏  举报