我正在尝试让 Bootstraps ScrollSpy 或任何“滚动间谍”类型的脚本在名为#reportContainer
.
我的标签中有两个链接,因为一个是删除页面的删除按钮。与课程的链接.page
是我希望它看到的。
谁能帮我搞定这个工作?
导航
<div id="leftReportBar">
<div id="leftBarContainer">
<ul id="reportNav" class="ui-sortable">
<li id="page_1_links">
<a href="#" class="removePage ss-delete" id="page_1"> </a>
<a class="page" href="#page1">Page 1</a>
</li>
<li id="page_2_links">
<a href="#" class="removePage ss-delete" id="page_2"> </a>
<a class="page" href="#page2">Page 2</a>
</li>
<li id="page_3_links">
<a href="#" class="removePage ss-delete" id="page_3"> </a>
<a class="page" href="#page3">Page 3</a>
</li>
</ul>
</div>
</div>
目标
<div id="reportContainer" style="height: 224px;" data-spy="scroll">
<div id="zoomMe">
<form action="#" id="page1">
<div id="formPage">
<!-- CONTENT GOES HERE -->
</div>
</form>
<form action="#" id="page2">
<div id="formPage">
<!-- CONTENT GOES HERE -->
</div>
</form>
<form action="#" id="page3">
<div id="formPage">
<!-- CONTENT GOES HERE -->
</div>
</form>
</div>
</div>