IE6 CSS bug: position: relative becomes absolute

Source: Internet
Author: User

BUG description:

Position: relative, bottom =-1px and other elements are used to locate block-level elements on the page, which will show the behavior of postion: absolute.

Solution:

Method 1. Add the position: relative attribute to the parent element of the outermost layer. Note that it is the outermost layer.

Method 2: change the position: relative of this element to the default static location, and implement it through attributes such as margin-top.

PS: Although IE6 is very old, there are still so many users using IE6 in our products. There is nothing wrong with the user's choice and we respect the user. Therefore, level1-level bugs must be solved for IE6, however, the page effect category is progressively enhanced, and only the most basic visual effect of IE6 is provided. Therefore, to experience the cool effect, update your browser to IE8, IE9, FF, Chrome...

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.