當前位置:編程學習大全網 - 網站源碼 - firefox多行文本如何顯示省略號。。。只使用css

firefox多行文本如何顯示省略號。。。只使用css

您好,感謝您對火狐的支持

跨瀏覽器兼容的方案:

p {

position:relative;

line-height:1.4em;

/* 3 times the line-height to show 3 lines */

height:4.2em;

overflow:hidden;

}

p::after {

content:"...";

font-weight:bold;

position:absolute;

bottom:0;

right:0;

padding:0 20px 1px 45px;

background:url(/css88/2014/09/ellipsis_bg.png) repeat-y;

您可以在火狐官方網站下載火狐瀏覽器,在火狐社區了解更多內容。希望我的回答對您有所幫助,如有疑問,歡迎繼續在本平臺咨詢。

  • 上一篇:英雄無敵3WOG中如何將賓升到3級
  • 下一篇:在博客中添加開場頁的代碼?
  • copyright 2024編程學習大全網