{
name: <fieldName>,
type: 'int',
useNull: true
},
这是代码..如何删除附加到按钮的额外箭头,如图所示?
CSS如下所示,用style.css编写:
<div>
<div class="dropdown" style="float:right">
<button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">
Admin<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">HTML</a></li>
<li><a href="#">CSS</a></li>
<li><a href="#">JavaScript</a></li>
</ul>
</div>
</div>
答案 0 :(得分:0)
评论后编辑
@import url('http://getbootstrap.com/dist/css/bootstrap.css');
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.1.0/bootstrap.min.js"></script>
<div class="container">
<h2>Dropdowns</h2>
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" type="button" id="menu1" data-toggle="dropdown">Drop Down
<span class="caret"></span></button>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Example</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Example2</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Example3</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">About Us</a></li>
</ul>
</div>
</div>
答案 1 :(得分:0)
min-width: 130px;
后,它看起来很不错