[英]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/
just take the same library and the same script include your project try this 只需使用相同的库和相同的脚本就可以将您的项目包括在内
Link : http://teachyourselftocode.com/assets/application-7790babf84d03a6beaea0c9e188a7514.css 链接: http : //teachyourselftocode.com/assets/application-7790babf84d03a6beaea0c9e188a7514.css
Script: http://teachyourselftocode.com/assets/application-c004d1f31767f20710957a4ef632ec32.js 脚本: http : //teachyourselftocode.com/assets/application-c004d1f31767f20710957a4ef632ec32.js
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.