Navigation is suspended on the top of the code learning, navigation is suspended code learning

Source: Internet
Author: User

Navigation is suspended on the top of the code learning, navigation is suspended code learning

Navigation suspended on the top of the code learning, due to the blog Park video restrictions, temporarily cannot watch Full Screen, if you want to watch Full Screen HD video, you can click the link to view: http://www.zymseo.com/20.html

The floating navigation on the top of a jQuery page is a jQuery floating navigation with a level-2 drop-down menu. It is very practical to scroll along with the page.

 

When you use this effect to decorate a webpage, the scroll bar cannot be pulled down because the position: fixed style is removed from the layout after the floating element is added, the height of the page does not include the height of the suspended element. for example, in the current example, the height of the visible area of the browser is 644px, And the content does not exceed 644px, so no scroll bar will appear in the browser. we set the top height to 44px, the main height to 600px, and the navigation height. When the page height exceeds 644px, a scroll bar appears. When the scroll height of the scroll bar exceeds 44px, the navigation bar is out of layout, the navigation is suspended, the page height is 644px, the page height is 644px, the scroll bar should not appear, the scroll bar height is changed to 0, the floating element regression layout, the page height is larger than 644px, because the scroll bar cannot be pulled down.

 

Solution: we only need to outsource a div to the floating element and set the height of the div to the height of the floating element.

 

This article is written by the author. For more information, see the source! Follow my blog to get the latest SEO website optimization and web Front-end development information!

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.