Force word wrap through CSS

后端 未结 7 1210
忘掉有多难
忘掉有多难 2021-01-04 00:10

At the moment TEST TEST appear side by side. How can I push one down onto a second line? Only through CSS.

TEST TEST

7条回答
  •  隐瞒了意图╮
    2021-01-04 00:17

    Setting the width of a element automatically breaks text inside the element

    There is also an option to break a word, this can be done with

    word-wrap: break-word;

    http://www.w3schools.com/cssref/css3_pr_word-wrap.asp

提交回复
热议问题