mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-24 03:40:10 +00:00
Completion of parentheses
This commit is contained in:
parent
a245c0d1cd
commit
d132c48ec9
@ -573,7 +573,7 @@ $('#myDropdown').on('show.bs.dropdown', function () {
|
|||||||
<h2 id="scrollspy-usage">Usage</h2>
|
<h2 id="scrollspy-usage">Usage</h2>
|
||||||
|
|
||||||
<h3>Via data attributes</h3>
|
<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 %}
|
{% highlight html %}
|
||||||
<body data-spy="scroll" data-target="#navbar-example">
|
<body data-spy="scroll" data-target="#navbar-example">
|
||||||
...
|
...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user