angular-ui-bootstrap - 如何将 Angular UI Typeahead 向右对齐

标签 angular-ui-bootstrap angular-ui-typeahead

我在 RTL 语言网站(阿拉伯语)中使用 angular-ui-bootstrap。默认情况下,预先输入将所有结果向左对齐。怎么改成对的?

这在 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;
  }

关于angular-ui-bootstrap - 如何将 Angular UI Typeahead 向右对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42941612/

相关文章:

angular - 组件路由器不适用于 ng-bootstrap

javascript - 如何对 Angular-UI Bootstrap Modal 组件的 'resolve' 属性进行单元测试

angularjs - 如何更改在 ng-bind-html 中呈现的有效 HTML 标签?

AngularJS [typeahead] 在 onFocus 上重新打开结果下拉列表

javascript - 如何创建以下类型的 json,该类型将在使用 Angular JS 进行类型提前时有用

javascript - 输入字段上的两个函数调用,一个是 onBlur,一个不在 Angular 中

ruby-on-rails - Rails 中的 Angular ui bootstrap 自定义模板

angularjs - Angular ui-bootstrap选项卡不呈现ui-view

angularjs - 类型错误 : Cannot call method 'replace' of undefined

javascript - 使用 angular-ui bootstrap 和 typeahead-loading