CSS control text Auto-wrap problem _ Experience Exchange

Source: Internet
Author: User
When you use a form to make a page layout, you can use it normally. It happens that sometimes you come across a continuous English word or a bunch of exclamation points (!!!) The phenomenon that the Web page is open: (

summed up, as long as the CSS in the definition of the following sentence, can protect the page will not be open again.

table{table-layout:fixed;}
TD (Word-break:break-all; word-wrap:break-word;)

Comment:

1. The first table{table-layout:fixed;}, this style allows the table to have!!! Characters such as exclamation marks.

2.td{word-break:break-all}, generally with this sentence this OK, but in some special cases will still open, so need to add the next sentence (Word-wrap:break-word;) can be solved. This style allows some consecutive words in the table to be wrapped in English.
  • 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.