本文实例为大家分享了Bootstrap Scrollspy插件的具体代码,供大家参考,具体内容如下
导航栏Scrollspy例子
rush:xhtml;">
elements are used to jump to a section in the scrollable area -->
<nav class="navbar navbar-inverse navbar-fixed-top">
...
<ul class="nav navbar-nav">
Section 1
...
<div id="section1">
Section 1
Try to scroll this page and look at the navigation bar while scrolling!
...
rush:xhtml;">
<div class="container">
<div class="row">
<nav class="col-sm-3" id="myScrollspy">
<ul class="nav nav-pills nav-stacked">
Section 1
...
Section 1
Try to scroll this page and look at the navigation list while scrolling!
...