Set automatic line feed for values in td

Source: Internet
Author: User

You can add such a code in <td> </td> to simplify the settings to wrap long strings without setting width and height.


Style = "word-wrap: break-word; word-break: break-all ;"

Be sure to set the width of td; otherwise, no.


Note:

Word-wrap: sets or retrieves whether to disconnect a line when the line goes beyond the boundary of the specified container.
Valid value:
Normal: default value. Allows the content to expand the specified container Boundary
Break-word: the content will wrap in the boundary. If necessary, the line feed (word-break) will also occur.


Word-break: set or retrieve the line feed behavior of text in an object. Especially when there are multiple languages
Value
Normal: default value. Line feed allowed between words
Break-all: this behavior is the same as that of the Asian language normal. It also allows non-Asian text lines to be broken in any word. This value is applicable to Asian texts that contain non-Asian texts.
Keep-all: same as normal in all non-Asian languages. Chinese, Korean, and Japanese cannot be disconnected. Suitable for non-Asian texts that contain a small number of Asian texts

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.