【发布时间】:2014-11-25 20:14:52
【问题描述】:
我正在尝试在我的网站 (ASPNET WebForms) 中创建一个拆分按钮。到目前为止,我喜欢的唯一拆分按钮实现是来自 Bootstrap 的实现。我没有使用他们框架的任何其他功能。但是,只要我插入:
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css">
我自己的 CSS 是一团糟。我试图只隔离拆分按钮所需的类,但我无法成功地做到这一点。
这是我的带有所需类的拆分按钮的 html 代码
<div class="btn-group">
<button type="button" onclick="NewPost();return false;" class="btn btn-primary">Enviar</button>
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span><span class="sr-only">Toggle Dropdown</span></button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Enviar con notificaciones</a></li>
</ul>
</div>
有人知道隔离欲望类的方法吗?或者可能指向我另一个类似于这个和跨浏览器的拆分按钮实现?我用谷歌搜索了很多,但我发现唯一可用的是引导程序。
【问题讨论】:
标签: css html twitter-bootstrap