bootstrap typeahead结果显示在多行上

时间:2013-04-03 13:53:56

标签: javascript jquery twitter-bootstrap bootstrap-typeahead

我正在使用bootstrap 2.3.1,并且我使用了typeahead,但结果在显示时它们显示在多行作为附加图片,我使用以下文本生成预先建议:

var colors = ["red", "blue", "green", "yellow", "brown", "black"];
$( "#search1" ).attr("autocomplete", "off");
$( "#search1" ).typeahead({source: colors});

请指教, bootstrap typeahead error

1 个答案:

答案 0 :(得分:0)

thanx @dfsq

我做了修复:

ul.typeahead strong {
  display:inline; 
}