You can fix the simple instance code of the navigation menu at the top and the navigation menu instance.

Source: Internet
Author: User

You can fix the simple instance code of the navigation menu at the top and the navigation menu instance.

You can fix the simple instance code in the navigation menu at the top:
The navigation bar fixed at the top of a webpage is popular in today's websites. The so-called "fixed at the top of a webpage" is generally not always fixed at the top, but at the beginning it is located at a certain position, the drop-down scroll bar is fixed to the top only when it reaches the top. The code example below describes how to achieve this effect.
The Code is as follows:

 

<! DOCTYPE html> 

 

The above Code meets our requirements. We can fix the simulated navigation bar to the top of the webpage. Of course, the navigation bar here is just a div block, in actual application, you can modify the code according to your project requirements. The code is simple and will not be described here.

The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 10796.

For more information, see: http://www.softwhy.com/jquery/

 

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.