The value of the z-index attribute is negative, and the value of the z-index attribute is negative.

Source: Internet
Author: User

The value of the z-index attribute is negative, and the value of the z-index attribute is negative.

The value of the z-index attribute is negative:

In many CSS codes, we can see that the z-index attribute value is set to a negative number. The following describes the performance of a negative value. In general, as long as the object sets the position attribute and the attribute value is not static, this object can overwrite non-locating objects. The code example is as follows:

<! DOCTYPE html> 

In the above Code, element a can overwrite Element B and then look at a code example:

<! DOCTYPE html> 

The code above shows that element B can overwrite Element a. That is to say, elements in a normal document stream can overwrite objects with the position Attribute Set and the attribute value is not static, and the z-index value is negative.

Original address: http://www.51texiao.cn/div_cssjiaocheng/2015/0503/583.html

The most original address is: http://www.softwhy.com/

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.