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>
|