0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Doc: minor modifications in Scrollspy (#36195)

Doc: minor modifications in Scrollspy
This commit is contained in:
Julien Déramond 2022-04-21 18:20:24 +02:00 committed by GitHub
parent fc87624a50
commit 01cffa6822
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,20 +168,34 @@ Scrollspy also works with nested `.nav`s. If a nested `.nav` is `.active`, its p
</nav>
<div data-bs-spy="scroll" data-bs-target="#navbar-example3" data-bs-offset="0" tabindex="0">
<h4 id="item-1">Item 1</h4>
<div id="item-1">
<h4>Item 1</h4>
<p>...</p>
<h5 id="item-1-1">Item 1-1</h5>
</div>
<div id="item-1-1">
<h5>Item 1-1</h5>
<p>...</p>
<h5 id="item-1-2">Item 1-2</h5>
</div>
<div id="item-1-2">
<h5>Item 1-2</h5>
<p>...</p>
<h4 id="item-2">Item 2</h4>
</div>
<div id="item-2">
<h4>Item 2</h4>
<p>...</p>
<h4 id="item-3">Item 3</h4>
</div>
<div id="item-3">
<h4>Item 3</h4>
<p>...</p>
<h5 id="item-3-1">Item 3-1</h5>
</div>
<div id="item-3-1">
<h5>Item 3-1</h5>
<p>...</p>
<h5 id="item-3-2">Item 3-2</h5>
</div>
<div id="item-3-2">
<h5>Item 3-2</h5>
<p>...</p>
</div>
</div>
```