Preface:
Why?
For example, we want to display a piece of text on the page.
In those days when quantum was born, the situation of physics has not been significantly improved.
The rebellious little genie was abandoned by his masters and had to leave the wilderness.
Store power to wait for the day that shocked the world. During the four-year period,
People use the plany formula with an ostrich mentality, but they do not want to investigate it.
The meaning behind the formula. However, on their heads, the thick dark clouds are still not scattered,
On the contrary, there is an increasing momentum. After all, a heavy rain in the world is inevitable.
Incorrect implementation:
In this case, we want to add <br> to the end of each line.
Problem:
Problem location 1: browser on the mobile phone device.
Because there is a mobile phone device, each line of text is very few on the mobile phone, if
If you press enter as shown above, what you see on your phone is a piece of text !! ,
(In the above case (automatically fold on the mobile phone page), the page needs to set the screen
The corresponding JS can achieve this effect)
Problem Location 2: Mac Safari browser.
At the same time, in MAC safari, each line shows average words
Few browsers! So sometimes problems occur on Mac.
Solution:
Therefore, we need to process the above text as a line.
Use <p> XXXXX </P>