【问题标题】:Twitter Typeahead Bootstrap ConflictTwitter Typeahead Bootstrap 冲突
【发布时间】:2016-04-03 08:59:56
【问题描述】:

我已经设法运行 Twitter Typeahead
但有一件事是错的,有一个白色的盒子不断出现,它变得透明
这是我的代码

<input type="text" class="typeahead form-control input-lg" placeholder="Renovation, Plumming, Welder, Carpent, Driver , Cleaner Etc...">

我遇到了什么错误


我需要什么

【问题讨论】:

    标签: css twitter-bootstrap twitter typeahead.js bootstrap-typeahead


    【解决方案1】:

    HTML

    <div class="form-group">
      <input type="text" class="typeahead form-control input-lg" placeholder="Renovation, Plumming, Welder, Carpent, Driver , Cleaner Etc...">
    </div>
    

    CSS

    div.form-group {
      width: // discover this
      height: // discover this
    }
    div.form-group input.form-control {
      width: // discover this
      height: // discover this
      background-color: inherit;
    }
    

    【讨论】:

    • 我的主要问题是如何摆脱输入文本中的那个白框。
    • 如果我理解了,你必须更改background-colorinput。我编辑了我的答案
    • 我可以在“form-control input-lg”中使用Bootstrap的给定高度和宽度而不是发现它们吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-03
    • 2013-02-04
    • 2017-09-25
    • 2012-04-28
    相关资源
    最近更新 更多