简体   繁体   English

具有不同样式的Bootstrap下拉菜单

[英]Bootstrap Dropdown Menu with different styling

I'm working on a small project and I need to use drop-down list, I saw a nice dropdown list without default styling. 我正在做一个小项目,我需要使用下拉列表,我看到一个不错的下拉列表,没有默认样式。

What I need just to show how I can make the same. 我只需要显示如何做到相同即可。

Example : http://teachyourselftocode.com/ 范例: http//teachyourselftocode.com/

In here you will find the way its easy to implement 在这里,您将找到易于实现的方法

http://getbootstrap.com/components/ http://getbootstrap.com/components/

Example:Run this with bootstrap CDN 示例:使用引导CDN运行它

<!-- Split button -->
<div class="btn-group">
  <button type="button" class="btn btn-danger">Action</button>
  <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    <span class="caret"></span>
    <span class="sr-only">Toggle Dropdown</span>
  </button>
  <ul class="dropdown-menu">
    <li><a href="#">Action</a></li>
    <li><a href="#">Another action</a></li>
    <li><a href="#">Something else here</a></li>
    <li role="separator" class="divider"></li>
    <li><a href="#">Separated link</a></li>
  </ul>
</div>

Hope you get what you need :) 希望你得到你所需要的:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM