apply ellipsis when label text is overflow

后端 未结 1 1673
被撕碎了的回忆
被撕碎了的回忆 2020-12-19 13:52

In this below html design, I want to apply text-overflow to ellipsis for the media-played and remarks label and want the media-played (first big line) on the first line and

相关标签:
1条回答
  • 2020-12-19 14:33

    New CSS:

    #media-played,#remarks {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display:block;
    }
    
    #player-play, #player-stop
    {
       display: inline-block;
       width: 48px;
       height: 48px;
    }
    #player-play
    {
        background-image: url('../images/play.png');
    }
    #player-stop
    {
       background-image: url('../images/stop.png');
    }
    

    jsFiddle:http://jsfiddle.net/dTffH/

    0 讨论(0)
提交回复
热议问题