Why doesn't word-wrap work properly in CSS3?

前端 未结 7 625
温柔的废话
温柔的废话 2021-02-01 01:44

Why doesn\'t word wrap property work properly in the example below?

http://jsfiddle.net/k5VET/739/

What can I do to ensure that part of the word \'consectetur\'

7条回答
  •  春和景丽
    2021-02-01 02:08

    This is useful for wrapping text in one line:

    #fos {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    

提交回复
热议问题