add archor

This commit is contained in:
yuanchuan 2017-05-29 20:35:55 +08:00
parent 355ceb1bb0
commit b3f31c02ad
2 changed files with 11 additions and 6 deletions

View File

@ -116,15 +116,15 @@
</p>
<ul class="nav">
<li> <a href="#">Grid</a></li>
<li> <a href="#">Selectors</a></li>
<li> <a href="#">Functions</a> </li>
<li> <a href="#grid">Grid</a></li>
<li> <a href="#selectors">Selectors</a></li>
<li> <a href="#functions">Functions</a> </li>
</ul>
<div class="sep"></div>
<article>
<h3>Grid</h3>
<h3><a name="grid"></a>Grid</h3>
<p>The size of the grid is defined by the <em>"grid"</em> attribute on the element, range from <em>1</em> to <em>16</em>. If no size or 0 is given,
the size is set to 1x1.
@ -167,7 +167,7 @@
<div class="sep"></div>
<article>
<h3>Selectors</h3>
<h3><a name="selectors"></a>Selectors</h3>
<section>
<h4>:doodle</h4>
@ -420,7 +420,7 @@
<div class="sep"></div>
<article>
<h3>Functions</h3>
<h3><a name="functions"></a>Functions</h3>
<section>
<h4>@index()</h4>
<p> Returns the current index value of the cell.</p>

View File

@ -462,7 +462,12 @@ textarea[code] {
.docs h3 {
font-size: 1.5em;
margin-bottom: 2em;
position: relative;
}
.docs h3 a[name] {
position: absolute;
top: -2em;
}
.docs h4 {
font-size: 1.2em;
margin-bottom: 1em;