CSS accumulation (1)

Source: Internet
Author: User

Word-break: normal | break-All | keep-all
Valid value:
Normal: default value. Line feed allowed between words
Break-ALL: this behavior is the same as that of the Asian language normal. It also allows non-Asian text lines to be broken in any word.
This value is applicable to Asian texts that contain non-Asian texts.
Keep-ALL: same as normal in all non-Asian languages. For Chinese, Korean, Japanese,
Word disconnection is not allowed. Suitable for non-Asian texts that contain a small number of Asian texts

Note:
Set or retrieve the line feed behavior of text in an object. Especially when there are multiple languages.
Use break-all for Chinese characters.
This attribute is read-only for currentstyle objects. Other objects can be read and written.
The corresponding script feature is wordbreak.
Example:
Div {word-break: Break-all ;}

Word-wrap: normal | break-word
Valid value:
Normal: default value. Allows the content to expand the specified container Boundary
Break-word: the content will wrap in the boundary. If necessary, the line feed (Word-break) will also occur.

Note:
Sets or retrieves whether to disconnect the dashboard when the forward time exceeds the boundary of the specified container.
This attribute only applies to layout objects, such as block objects. To use this attribute for inline elements, you must first set the height or width attribute of the object,
You can also set the position attribute to absolute, or set the display attribute to block.
This attribute is read-only for currentstyle objects. Other objects can be read and written.
The corresponding script feature is wordwrap.
Example:
Div {word-wrap: Break-word; Word-break: Break-all ;}

Table-layout: fixed; // that is, the width is fixed and does not change with the content.

Example 1

  1. <HTML>
  2. <Body>
  3. <Table cellspacing = "0" cellpadding = "0" width = "100%" border = "1">
  4. <Tbody>
  5. <Tr Height = "30">
  6. <TD style = "width: 12px"> </TD>
  7. <TD class = "bigcaption" style = "width: 150px"> web domain: <SPAN class = "warningdescription"> * </span>
  8. </TD>
  9. <TD>
  10. <Select id = "dwt189webdomain"/>
  11. </TD>
  12. </Tr>
  13. <Tr>
  14. <TD> </TD>
  15. <TD valign = "TOP" colspan = "2">
  16. Bytes
  17. </TD>
  18. </Tr>
  19. </Tbody>
  20. </Table>
  21. </Body>
  22. </Html>

Example 2

  1. <HTML>
  2. <Body>
  3. <Table cellspacing = "0" cellpadding = "0" width = "100%" border = "1" style = "table-layout: fixed">
  4. <Tbody>
  5. <Tr Height = "30">
  6. <TD style = "width: 12px"> </TD>
  7. <TD class = "bigcaption" style = "width: 150px"> web domain: <SPAN class = "warningdescription"> * </span>
  8. </TD>
  9. <TD>
  10. <Select id = "dwt189webdomain"/>
  11. </TD>
  12. </Tr>
  13. <Tr>
  14. <TD> </TD>
  15. <TD valign = "TOP" colspan = "2">
  16. Bytes
  17. </TD>
  18. </Tr>
  19. </Tbody>
  20. </Table>
  21. </Body>
  22. </Html>
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.