Div is fixed at the top of the page when it is scrolled to the top of the page. Example code _ javascript tips-js tutorial

Source: Internet
Author: User
When Javascript is used to scroll a page, the DIV is fixed to the top when it reaches the top. The effect in IE is a little flash. The specific code is as follows. If you are interested, refer to the example below. When Javascript is used to scroll the page, the DIV is fixed to the top when it reaches the top. In IE effect a little flash, effect Web site: http://www.keleyi.com/keleyi/phtml/fixp.htm

The following code is used:

The Code is as follows:

  • Href = "http://www.keleyi.com/menu/net/" target = "_ blank">. NET

  • Javascript

  • JQuery

  • C #

  • Others

  • Homepage

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.