Position: absolute is definitely positioned in IE6.

Source: Internet
Author: User
I have nothing to do today. I plan to organize common CSS for future use. As expected, IE6 made me Tangle again.

HtmlCode:

<DivClass= "Test"Style= "">Ddaaaaaaaaaaaaaaaaaa</Div>

CSS code:

 . Test  {  Position  :  Absolute  ; 
Top : 300px ; Right : 500px ; Left : 0 ; Bottom : 0 ;
Zoom : 1 ; _ Display : Block ; Background-color : #000 ; Color : # Fff ; }

Test is an absolutely positioned Div. Note that the height and width of test are not defined in CSS code. However, normally, in a non-IE6 browser, the test area is automatically stretched (no matter how much content) to meetTop: 300px; Right: 500px; left: 0; bottom: 0;And other positioning conditions. However, in IE6, test is not stretched at all, and its region is its content zone. The positioning values take precedence over left and top, and right and bottom do not take effect-although they are more in line with the proximity principle.

-----

By the end of this article, I have tried almost all the methods I know, but I cannot automatically extend the test in IE6... If anyone can solve this problem during the study, please leave a message and I am very grateful.

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.