mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-17 19:06:40 +02:00
fixes #4473: docs example typo for js affix plugin
This commit is contained in:
@@ -1606,7 +1606,7 @@ $('.carousel').carousel({
|
|||||||
<h3>Via data attributes</h3>
|
<h3>Via data attributes</h3>
|
||||||
<p>To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.</p>
|
<p>To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.</p>
|
||||||
|
|
||||||
<pre class="prettyprint linenums"><div data-spy="affix" data-offset-top="200">...</body></pre>
|
<pre class="prettyprint linenums"><div data-spy="affix" data-offset-top="200">...</div></pre>
|
||||||
|
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<strong>Heads up!</strong>
|
<strong>Heads up!</strong>
|
||||||
|
2
docs/templates/pages/javascript.mustache
vendored
2
docs/templates/pages/javascript.mustache
vendored
@@ -1536,7 +1536,7 @@ $('.carousel').carousel({
|
|||||||
<h3>{{_i}}Via data attributes{{/i}}</h3>
|
<h3>{{_i}}Via data attributes{{/i}}</h3>
|
||||||
<p>{{_i}}To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.{{/i}}</p>
|
<p>{{_i}}To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.{{/i}}</p>
|
||||||
|
|
||||||
<pre class="prettyprint linenums"><div data-spy="affix" data-offset-top="200">...</body></pre>
|
<pre class="prettyprint linenums"><div data-spy="affix" data-offset-top="200">...</div></pre>
|
||||||
|
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<strong>{{_i}}Heads up!{{/i}}</strong>
|
<strong>{{_i}}Heads up!{{/i}}</strong>
|
||||||
|
Reference in New Issue
Block a user