Standard

Dropdown:

<div class="dropdown-menu dropdown-anchor-top-left dropdown-has-anchor" id="dropdown-standard">
<ul>
	<li><a href="#">Item 1</a>></li>
	<li><a href="#">Item 2</a></li>
	<li class="divider"></li>
	<li><a href="#">Item 3</a></li>
</ul>
</div>

Trigger:

<button data-dropdown="#dropdown-standard">Try out!</button>

With Icons

Dropdown:

<div class="dropdown-menu dropdown-anchor-top-left dropdown-has-anchor" id="dropdown-with-icons">
<ul>
	<li><a href="#"><svg>...</svg> Item 1</a>></li>
	<li><a href="#"><svg>...</svg> Item 2</a></li>
	<li class="divider"></li>
	<li><a href="#"><svg>...</svg> Item 3</a></li>
</ul>
</div>

Trigger:

<button data-dropdown="#dropdown-with-icons">Try out!</button>

Dark with Icons

Dropdown:

<div class="dropdown-menu dropdown-anchor-top-left dropdown-has-anchor dark" id="dropdown-dark-with-icons">
<ul>
	<li><a href="#"><svg>...</svg> Item 1</a>></li>
	<li><a href="#"><svg>...</svg> Item 2</a></li>
	<li class="divider"></li>
	<li><a href="#"><svg>...</svg> Item 3</a></li>
</ul>
</div>

Trigger:

<button data-dropdown="#dropdown-dark-with-icons">Try out!</button>

Different Position

Dropdown:

<div class="dropdown-menu dropdown-anchor-left-center dropdown-has-anchor" id="dropdown-standard">
<ul>
	<li><a href="#">Item 1</a>></li>
	<li><a href="#">Item 2</a></li>
	<li class="divider"></li>
	<li><a href="#">Item 3</a></li>
</ul>
</div>

Trigger:

<button data-dropdown="#dropdown-left-center">Try out!</button>

No anchor + HTML-Content

Dropdown:

<div class="dropdown-menu dropdown-anchor-top-left" id="dropdown-no-anchor-html">
<p>I am <b>HTML</b>-<i>Content</i>.</p>

<button>And a button!</button>
</div>

Trigger:

<button data-dropdown="#dropdown-no-anchor-html">Try out!</button>

Note: For dropdowns without anchor you still specify where the anchor would be normally but leave out dropdown-has-anchor.

适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。

来源:Gxl网-jquery插件