angular-ui-bootstrap – 如何将Angular UI Typeahead对齐到右侧

我在RTL语言网站(阿拉伯语)中使用angular-ui-bootstrap.默认情况下,Typeahead将所有结果对齐到左侧.如何改变它?

这在angular-ui-bootstrap网站中提到:

The $uibPosition service provides a set of DOM utilities used internally to absolute-position an element in relation to another element (tooltips, popovers, typeaheads etc…).

我无法理解.有什么例子吗?

最佳答案 这对我有用:

 .rtl .dropdown-menu{
     float:right;
     position:inherit;
  }
点赞