开发者

hot to make the text move to next line inside div when it covers the width of the div in css

hi how can i make the text inside div coming to the next line if the text covers the width of contenteditable="true"

Just like gmail chat when some one writes anything inside div then it automatically moves to next line

I a开发者_JAVA技巧m talking about the contentEditable="true" div means the div in which we can edit or write text.


.break-word { 
word-wrap: break-word;
}


Sometimes it is not enough using "word-wrap : break-word".

.break-word { 
  word-wrap: break-word;
  display:flex;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜