我试图让标签位于angular-ui-select下拉菜单的左侧,但不管我怎么尝试,它总是显示在标签的下方。我最近下载了最新的angular-ui-select。我使用的是selectize主题,但同样的事情也发生在bootstrap主题上。
我是不是在HTML中做错了什么?我就是看不出来。
这是我的HTML正文:
<body>
<div ng-controller="MainCtrl">
<div id="acct">
<label for="acctList">Account:</label>
<ui-select id="acctList" ng-model="acctList.selected" style="width: 250px;" theme="selectize" ng-disabled="disabled" title="Choose an account">
<ui-select-match placeholder="Select or search an account in the list...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="account in acctList | filter: $select.search">
<span ng-bind-html="account.name | highlight: $select.search"></span>
</ui-select-choices>
</ui-select>
</div>
</div>
</body>任何帮助都是非常感谢的。thx
发布于 2015-04-24 01:07:48
在进行了更多的搜索和实验并使用Firebug之后,我发现ui-select由div组成。我可以通过添加以下内容将标签放在下拉列表的左侧:
display:inline-block; vertical-align:middle 添加到ui-select的样式属性。
(无法发布图片)
https://stackoverflow.com/questions/29778719
复制相似问题