1. 程式人生 > >常用css屬性集(持續更新…)

常用css屬性集(持續更新…)

wid 常用 process nowrap alt tex pro -s 51cto

  • 禁止換行,超出部分顯示…:
    a. 代碼:
    .hide_word{
    max-width: 100px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    }

    b. 效果:
    技術分享圖片

  • 常用css屬性集(持續更新…)