2013-04-03 47 views
0

我使用的是bootstrap 2.3.1,而且我使用typeahead,但是当显示它们时,结果显示在多行上作为附加图片,我用下面的文本生成预先的建议:bootstrap typeahead结果显示在多行上

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

请指点, bootstrap typeahead error

+1

检查你的样式,在这种情况下,'strong'标签看起来像'display:block'。 – dfsq

回答

0

感谢名单@dfsq

我也来修复:

ul.typeahead strong { 
    display:inline; 
}