diff options
| author | Quy <[email protected]> | 2016-12-31 16:12:28 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-12-31 16:39:42 -0800 |
| commit | ff8d28cf2501773ff6f7833865c8e2b2ebb76a3f (patch) | |
| tree | 2287ed2a05f061cd80630e263746e03c8a321c1f /docs/components/scrollspy.md | |
| parent | bccb8ce21300f8da0bfefe1fdde9ab9d87994769 (diff) | |
| download | bootstrap-ff8d28cf2501773ff6f7833865c8e2b2ebb76a3f.tar.xz bootstrap-ff8d28cf2501773ff6f7833865c8e2b2ebb76a3f.zip | |
Move .table-responsive from wrapper to .table
Diffstat (limited to 'docs/components/scrollspy.md')
| -rw-r--r-- | docs/components/scrollspy.md | 69 |
1 files changed, 33 insertions, 36 deletions
diff --git a/docs/components/scrollspy.md b/docs/components/scrollspy.md index 74829267e..a1f04ad9c 100644 --- a/docs/components/scrollspy.md +++ b/docs/components/scrollspy.md @@ -117,45 +117,42 @@ $('[data-spy="scroll"]').each(function () { Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-`, as in `data-offset=""`. -<div class="table-responsive"> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 100px;">Name</th> - <th style="width: 100px;">Type</th> - <th style="width: 50px;">Default</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td>offset</td> - <td>number</td> - <td>10</td> - <td>Pixels to offset from top when calculating position of scroll.</td> - </tr> - </tbody> - </table> -</div> +<table class="table table-bordered table-striped table-responsive"> + <thead> + <tr> + <th style="width: 100px;">Name</th> + <th style="width: 100px;">Type</th> + <th style="width: 50px;">Default</th> + <th>Description</th> + </tr> + </thead> + <tbody> + <tr> + <td>offset</td> + <td>number</td> + <td>10</td> + <td>Pixels to offset from top when calculating position of scroll.</td> + </tr> + </tbody> +</table> ### Events -<div class="table-responsive"> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 150px;">Event Type</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td>activate.bs.scrollspy</td> - <td>This event fires whenever a new item becomes activated by the scrollspy.</td> - </tr> - </tbody> - </table> -</div> +<table class="table table-bordered table-striped table-responsive"> + <thead> + <tr> + <th style="width: 150px;">Event Type</th> + <th>Description</th> + </tr> + </thead> + <tbody> + <tr> + <td>activate.bs.scrollspy</td> + <td>This event fires whenever a new item becomes activated by the scrollspy.</td> + </tr> + </tbody> +</table> + {% highlight js %} $('#myScrollspy').on('activate.bs.scrollspy', function () { // do something… |
