Automatic table line feed-gridview

Source: Internet
Author: User
Automatic table line feed:

When the numbers and English letters are used, the TD in the table will be extended and the line feed will not automatically break. It can be used in full-width mode.

Solution:

Add <TD style = "word-break: Break-all">

 

When using tables for web page formatting, it can be used normally. Sometimes you may encounter continuous English words or a bunch of exclamation points (!!!) The phenomenon of opening up webpages :(
To sum up, as long as the following sentence is defined in CSS, the website that can be protected will no longer be opened.

Table {table-layout: fixed ;}
TD (Word-break: Break-all; Word-wrap: Break-word ;)
Note:
1. The first table {table-layout: fixed;}. This style can be included in the table !!! Automatically wrap a line when a character such as an exclamation point (Exclamation point.

2. TD {word-break: Break-all}. This statement is usually used, but it will be supported in some special circumstances, therefore, you need to add the following sentence (Word-wrap: Break-word;) to solve the problem. This style can automatically wrap some consecutive English words in the table.

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.