Introduction to some knowledge of CSS

Source: Internet
Author: User

1. About the difference between a block element and an inline element:

Block element: Http://baike.baidu.com/link?url=FzeRCiyIMrfGd39Vyf_qpfgxqZ1Qsf5lMlApg8h--vlBivV5cE8Z5MwaRsl0dzus6JCXxeHeMubZyGjsfisWGK

Inline element: Http://baike.baidu.com/link?url=gxAyzGte9cSJiLoeLo352-nzniL-qBUtT290bMBMKpPHU3Qg8Yn_ 2smjoqntfrc3bl44-zibtfc6tsalaj-p-q

Add some knowledge about display:

The difference between 1.display:block and Display:inline is that the former converts the inline element into a block element, while the latter converts the block element to an inline element.

The 2.display:inline-block (inline block property value) is available in both of the above features, but currently only supports opera and Safari browsers.

When you convert a block element to an inline block property, you cannot change how the block element is displayed, but the inline element can.

When used, the 3.display:none is hidden together with the occupied space.

Here is the explanation: the difference between Visibility:hidden and Display:none is that the former will occupy a certain space when hidden.

Introduction to some knowledge of 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.