How to break lines in received JSON data

dwj313 注册会员
2023-01-25 09:00

You can try applying the css display: block; to the viewer and that will make each div child of viewer take up the full width of the parent

crane_hui 注册会员
2023-01-25 09:00

If you put text in a <div>, it won't have line breaks by default. To get line breaks, you'll have to either put each line in its own block element (like

) or insert a
tag between each line.

Here's an example of each. https://jsfiddle.net/bdLru78c/

About the Author

Question Info

Publish Time
2023-01-25 09:00
Update Time
2023-01-25 09:00