Summary Files Commits Branches @commit @diff @stats
path: root / docs / elements.html
diff options
context:
space:
mode:
Commitcb6e1d48a6764e5bf6b17be2cf591d0e4e9d1882 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-11-13 14:54:17 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-11-13 14:54:17 +0800
Files67d3628efe37551b3d00b0635b2a1f02ec88375f /docs/elements.html
Spectre-Dark-Gruvbox-cb6e1d48a6764e5bf6b17be2cf591d0e4e9d1882.tar
Spectre-Dark-Gruvbox-cb6e1d48a6764e5bf6b17be2cf591d0e4e9d1882.tar.gz
Spectre-Dark-Gruvbox-cb6e1d48a6764e5bf6b17be2cf591d0e4e9d1882.zip
Parent19d2ea1bc04ea5bf7b7ec57994e66057f5d59536 (diff)
Add Table with horizontal scroll support #333
1 files changed, 57 insertions, 0 deletions
-rw-r--r--docs/elements.html57
diff --git a/docs/elements.html b/docs/elements.html
index 8ffabdc..8935483 100644
--- a/docs/elements.html
+++ b/docs/elements.html
@@ -602,6 +602,63 @@
&lt;<span class="tag">/table</span>&gt;
</code></pre>
+ <div class="docs-note">
+ <p>If you need the tables with horizontal scroll, add the <code>table-scroll</code> class to the &lt;table&gt; element. </p>
+ </div>
+
+ <table class="table table-scroll">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Genre</th>
+ <th>Director</th>
+ <th>Rating</th>
+ <th>Duration</th>
+ <th>Release date</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>The Shawshank Redemption</td>
+ <td>Crime, Drama</td>
+ <td>Frank Darabont</td>
+ <td>R</td>
+ <td>2h 22min</td>
+ <td>14 October 1994</td>
+ </tr>
+ <tr>
+ <td>The Godfather</td>
+ <td>Crime, Drama</td>
+ <td>Francis Ford Coppola</td>
+ <td>R</td>
+ <td>2h 55min</td>
+ <td>24 March 1972</td>
+ </tr>
+ <tr>
+ <td>Schindler's List</td>
+ <td>Biography, Drama, History</td>
+ <td>Steven Spielberg</td>
+ <td>R</td>
+ <td>3h 15min</td>
+ <td>4 February 1994</td>
+ </tr>
+ <tr>
+ <td>Se7en</td>
+ <td>Crime, Drama, Mystery</td>
+ <td>David Fincher</td>
+ <td>R</td>
+ <td>2h 7min</td>
+ <td>22 September 1995</td>
+ </tr>
+ </tbody>
+ </table>
+
+<!-- tables -->
+<pre class="code" data-lang="HTML"><code>&lt;<span class="tag">table</span> <span class="atn">class</span>=<span class="atv">&quot;table table-scroll&quot;</span>&gt;
+ <span class="com">&lt;!-- table content --&gt;</span>
+&lt;<span class="tag">/table</span>&gt;
+</code></pre>
+
</div>
<div id="buttons" class="container">