Good memory, bad handwriting. html and CSS notes __html

Source: Internet
Author: User
Word wrapping in long words

1. Word-wrap:normal | Break-word;

The Word-wrap property allows a long word or URL address to wrap to the next line.

Normal: The browser keeps the default processing only when the allowed hyphenation points are wrapped. Hyphenation points such as spaces, full-width characters, and so on. Half-width semicolons and commas are not hyphenation points.

Break-word: Wraps inside a long word or URL address.

Following in the IE9 test pass

A. Use in TD elements, must be used in conjunction with width, and width can not use a percentage.

B. Use within DIV and P elements to enable word wrapping in long words. You do not need to use the width, if you use the Width property, width also supports the percentage.

2. Word-break:normal|break-all|keep-all;

Normal uses the browser default line break rule.

Break-all allows wrapping within a word.

Keep-all can only be wrapped in a half-width space or a hyphen. nowrap properties in HTML tables

The NoWrap property of the TD element in HTML indicates that text wrapping in the cell is blocked. However, it should be noted that the behavior of the nowrap attribute in TD element is related to the width property of TD element. If the TD width is set to units such as pixels, the NoWrap property does not work, and if the TD width setting is set to percent, the NoWrap property still works.

HTML is loaded sequentially

HTML is loaded and interpreted for execution in sequence.

For <script/> labels, method calls in the same script label can precede the method declaration. However, when you invoke a method in a different script label, the method declaration must precede the method execution.

If a JS error is generated in a <script> tag, subsequent code for the script block will not be executed. However, subsequent script blocks can continue to perform normally.

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.