mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-29 02:30:23 +00:00
Merge pull request #10364 from wangsai/patch-1
Completion of parentheses
This commit is contained in:
commit
93dc003a83
1 changed files with 1 additions and 1 deletions
|
|
@ -573,7 +573,7 @@ $('#myDropdown').on('show.bs.dropdown', function () {
|
|||
<h2 id="scrollspy-usage">Usage</h2>
|
||||
|
||||
<h3>Via data attributes</h3>
|
||||
<p>To easily add scrollspy behavior to your topbar navigation, add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the <code><body></code>. Then add the <code>data-target</code> attribute with the ID or class of the parent element of any Bootstrap <code>.nav</code> component.</p>
|
||||
<p>To easily add scrollspy behavior to your topbar navigation, add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the <code><body></code>). Then add the <code>data-target</code> attribute with the ID or class of the parent element of any Bootstrap <code>.nav</code> component.</p>
|
||||
{% highlight html %}
|
||||
<body data-spy="scroll" data-target="#navbar-example">
|
||||
...
|
||||
|
|
|
|||
Loading…
Reference in a new issue