我正在使用Twitter引导程序,并希望在搜索框中创建一个下拉列表。我正在尝试模拟gmail的搜索栏,其中输入搜索框的末尾有一个插入符号,可以单击该插入符号以打开表单。
我正在尝试使用引导程序的下拉列表在单击插入符号时显示div。但是,我无法像谷歌那样将插入符号放在输入框中。
查看谷歌的代码,我看到他们有一个没有边框的输入框,放在一个下拉插入符号旁边,嵌入在一个带有边框的div 中。
我无法覆盖引导输入框的边框属性。有人试过吗?
下面是我的代码 -
<div class="input-append dropdown">
<input type="text" name="puesto" class="input-xlarge noBorder" placeholder="Email Address"/> <a class="dropdown-toggle btn" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html">
<b class="caret"></b> </a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> Hello world </ul> <button class="btn" type="button"><i class="icon-filter"></i></button> </div>
<style type="text/css"> .noBorder {border-top-width: 0px;} </style>
使用类来帮助重写,例如:
<input class="the-input" type="text" />
然后得到那个边界的里多:
input.the-input {
border: none transparent;
-webkit-box-shadow: none;
box-shadow: none;
filter:-; /* for IE */
}