This is a simple jQuery plug-in that allows the page target element to be "fixed" at the top of the browser window. Even if the page is scrolling, the target element can still appear at the set position. This plug-in can work on multi-page websites and can also implement navigation functions on a single page. Scroll the current page to see the effect of the navigation bar.
Now you can load the javascript file included in stickUp into your page. Copy the code below and paste it at the bottom of the page. Be sure to make sure the path to the javascript file is correct.
. Alternatively, you can place the following code into an existing javascript file (this file must also be under the stickUp file). Replace '.navbar-wrapper' with the class name of the target element.
//enabling stickUp on the '.navbar-wrapper ' class
It’s that simple!
For more detailed functions, please see http://www.bootcss.com/p/stickup/
The above introduces stickUp, a jQuery plug-in, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.