Note [* hard line feed] and [○ soft line feed] When appending a picture text]

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.