Text wrap in HTML jquerymobile

Source: Internet
Author: User

Because the project is a mobile Web Development Project, it can be viewed on the mobile browser. Because the text is too long, it cannot be displayed in a half-cut manner, and the boss hopes to wrap the text and look at it clearly. It was impossible in the past, I checked it and did not expect it to be solved.

Before the solution is completed, the effect is as follows:

Source codeAs follows:

<Ul data-role = "listview" data-inset = "true" data-theme = "C"> <li id = "Li1" onclick = "test () "> <a href =" "rel =" external "style =" font-style: normal; font-family: @ ">  

Add a newline style to the <H3 style = "white-space: Pre-wrap;">

The problem is solved as follows:

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.