Fixed Position floating Div no jitter IE6 IE7 CSS writing

Source: Internet
Author: User

CSS:

body {background-image: url(text.txt); background-attachment: fixed;}
.float_up_controler {position: fixed; width: 58px; height: 58px; right: 30px; cursor: pointer; overflow: hidden; z-index: 9; _position: absolute; _top: expression(documentElement.scrollTop + documentElement.clientHeight - this.offsetHeight - 165); _left: expression(documentElement.scrollLeft + documentElement.clientWidth - this.offsetWidth - 30);}

HTML:

<Div id = "scrollbar_up_controler" class = "float_up_controler" style = "bottom: 165px;" Title = "Back to Top">  </div>

Everyone knows that _ top is exclusively prepared for IE6, but when only the above sentence is added, the floating thing shown in the pull scroll bar of IE6 is jitters, the solution is to add such a statement to IE6:

background-image: url(text.txt);

Note that text.txt does not need to have this TXT file. The TXT file name can be regarded as your preferences, so that we can solve the jitter problem in IE6.

Note: This article Reprinted from: http://blog.sina.com.cn/s/blog_5d8975f30100i4hd.html

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.