HTML---Summary

Source: Internet
Author: User

(1) A negative margin can make a box without width larger.

For boxes with width, there is no float , only margin-top and Margin-left are valid, if floating , margin-floating direction is valid,-top is valid, Margin-bottom is invalid. (It is not possible to set a margin-bottom or right=0px box on the side, if that is almost a positioning)

(1.1) Margin question:

  margin-top Drag : The margin-top of the child is given to the parent
Workaround: Add a border to the parent level
Add Overflow:hidden to the parent level;
Margin-top with parent padding-top instead of children

Consolidation of margin:
Solution: Write a direction

(1.1) Clear float three ways:

1. Add Overflow:hidden to the parent level;
2. Add an empty div div{clear:both to the floating element's sibling;}
3. Add class name to parent Clearfix
. Clearfix:after{content: '; display:block; clear:both;}

(2) To solve the IE6 fixed positioning incompatible scheme: http://www.css88.com/archives/673#more-673

1 JS analog 2 CSS hack 3 ie conditional annotation solution

(3) The bottom in the positioning is based on the visible area to walk, not according to the body height.

(4) Border-radius is the CSS3 property, compatible with ie9+, the formation principle of fillets, see,

Border-radius:50px 106px 162px 32px/ 50px 80px 178px 26px; Standard syntax format, horizontal radius and vertical radius

    

(5) Anchor point <a href= "#one" > Catalogue: Chapter One </a>

(6) Form element, radio button

for = "box" > Beauty </label><input type= "checkbox" id= "box"/> or for = "box" >    <input type= "checkbox" id= "box"/> Beauty </label>

(7)

HTML---Summary

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.