JSP table, text in the table is automatically wrapped according to the size of the table)

Source: Internet
Author: User

Http://blog.csdn.net/yangyz_love/article/details/8056672

Style = "table-layout: fixed; Word-break: Break-all; Word-wrap: Break-word" Syntax: Word-break: normal | break-All | keep-All parameter: Normal: according to the text rules of the Asian and non-Asian languages, break-all can be entered in the text: this action is the same as normal in the Asian language. It also allows non-Asian text lines to be broken in any word. This value is suitable for Asian text keep-all that contains some non-Asian text: it is the same as normal in all non-Asian languages. Chinese, Korean, and Japanese cannot be disconnected. It is applicable to non-Asian text syntax that contains a small amount of Asian text: Word-wrap: normal | break-word parameter: Normal: allows the content to open the specified container boundary break-word: the content will wrap in the boundary. If necessary, word-break also indicates whether to disconnect or retrieve the line break when the line breaks beyond the boundary of the specified container. Syntax: Table-layout: auto | fixed parameter: Auto: Default automaticAlgorithm. The layout is based on the content of each cell. The table is displayed only after each cell is read and computed. Slow fixed: Fixed Layout Algorithm. In this algorithm, the horizontal layout is only based on the table width, the table Border width, cell spacing, and column width, but is not related to the table content.
Share:

Related Article

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.