CSS自動截取字串 支援FF

來源:互聯網
上載者:User
<style type="text/css">    <!--    .div1{        width:200px;    }    .div1 span{       white-space:nowrap;       text-overflow:ellipsis;         *text-overflow:ellipsis; /* for ie6  ie7 */       overflow:hidden;       width:168px;       display:block;       float:left;    }      html>body .div1:after{/* for FF chrome ie8+*/       content: "...";       margin-left:5px;    }      -->    </style>      <p><span style="FONT-SIZE: 14px"><div class="div1"><span>最近微軟發布的IE7瀏覽器的相容性確實給一些網頁製作人員添加了一個沉重的負擔</span></div></span></p>  
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.