0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
This commit is contained in:
Mark Otto 2014-07-13 00:08:25 -07:00
parent cd7250d6a8
commit 2c540b7e33

View File

@ -131,13 +131,13 @@
</ul>
</div>
{% endhighlight %}
<p>To keep URLs intact, use the <code>data-target</code> attribute instead of <code>href="#"</code>.</p>
<p>To keep URLs intact with link buttons, use the <code>data-target</code> attribute instead of <code>href="#"</code>.</p>
{% highlight html %}
<div class="dropdown">
<button id="dLabel" type="button" data-toggle="dropdown">Dropdown trigger</button>
Dropdown
<a id="dLabel" data-target="#" href="http://example.com" type="button" data-toggle="dropdown">
Dropdown trigger
<span class="caret"></span>
</button>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
...