我使用twitter-bootstrap typeahead从服务器获取数据,并将其显示为用户类型。
问题是我的网站是RTL,这使得结果框不对齐。
在chrome上,结果框对齐到最右边,在FF上,它显示在输入的左侧。
我试图寻找它,但似乎没有解决方案。
这是twitter-bootstrap应用的硬编码风格:
<ul class="typeahead dropdown-menu dropdown-fixed" style="top: 191px; left: 849px; display: none;">你知道如何正确地对齐吗? 10x
发布于 2013-03-21 16:10:00
我通过删除左边的属性让它正常工作:
this.$menu.insertAfter(this.$element).css({top:b.top+b.height,left:b.left}).show(),this.shown=!0,this}并对下拉列表使用了固定的右侧位置。
https://stackoverflow.com/questions/15480700
复制相似问题