How to find where browser breaks a paragraph of text

后端 未结 5 1592
谎友^
谎友^ 2021-01-19 03:46

I need to add line breaks in the positions that the browser naturally adds a newline in a paragraph of text.

For example:

This is some very long tex

5条回答
  •  太阳男子
    2021-01-19 04:04

    Maybe an alternative: do all line-breaks yourself, instead of relying on the browser. Place all text in pre tags, and add your own linebreaks. Now at least you don't have to figure out where the browser put them.

提交回复
热议问题