Front End Knowledge Review one (css)

Source: Internet
Author: User
Tags dashed line visibility

1. Clear Float

The parent box has a height of 0 and the child box is positioned and Floated. The box will not open up the parent box

Clear Method:

clear:both;

overflow:hidden;

Add Empty Label

Single/double

{      content:".";       didsplay:table;}     . fixclear:after{      clear:both;  } . Fixclear {      *zoom:1;  }
//single label. Fixclear:after {    content:"0";     Display:block;     height:0;     ling-height:0;     visibility:hidden;    Clear:both;}     . fixclear{    *zoom:1;  Compatible with     ie}

2. The species method of hiding the box

1.display:none; Hide the box, do not occupy the position

2.overflow:hidden; Hide Overflow part

3.visibility:hidden: Hide box, occupy position

4.opacity:0; hide the box, occupy the position (after setting the transparency, the content contained inside is also Transparent)

5.position-left/top:-999em; hide the box, not occupy the position

3. A height box, the child box height exceeds the height of the parent box, the parent box will be bursting;

4. Without the height of the box, the Child box will open the parent box

5. Floating Box can't hide the text of standard stream

6.cursor:pointer Mouse Small Hands

7.dotted Dot Dashed dashed line

8. Hierarchy

The float is higher than the Standard. The positioning is higher than the floating

Lower box level than standard flow with negative z-index

    

      

Front End Knowledge Review one (css)

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.