Avoid deformation of table CSS

Source: Internet
Author: User

How to avoid the deformation of a table because of the image size or long English characters can be prevented by adding the following code to the CSS. At the same time, the English words are broken by words, not by letters. What I want to say is that this is not supported in CSS2.0, but it can solve some practical problems. Page design is not designed for the purpose of standard test, but mainly for the use of users. At present, some WEB standards cannot solve some problems, and I will use some non-standard methods to deal with them, as long as the mainstream browsers such as IE, Firefox, Netscape, and Opera are correctly displayed, I will put the quasi-validation through the WEB table at a secondary location, and MS is recommended in CSS3. 0, maybe CSS3. 0 is supported. WEB standards are also developing. Maybe tomorrow's standards will be added to this attribute, or new properties will appear to solve the problem.
Check this connection.
Http://www.w3.org/TR/2003/CR-css3-text-20030514/#wordbreak-props
Common CSS code snippets:

The code is as follows: Copy code
<Style>
Table {
Table-layout: fixed;
Word-wrap: break-word;
}
Div {
Word-wrap: break-word;
}
</Style>

 

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.