2015-04-01 52 views
3

使用Angular和多用户界面选择,选择框显示不需要的“额外”框(见图片)。我该如何删除它?如何在ui-选择中删除不需要的框?

enter image description here 代码:

 <ui-select multiple ng-model="definition.attachments" theme="bootstrap"> 
     <ui-select-match >{{$item.name}}</ui-select-match> 
     <ui-select-choices repeat="template.id as template in templates">{{template.name}}</ui-select-choices> 
     </ui-select> 
+0

检查要素类,然后加上'显示:none'在CSS? – 2015-04-01 09:24:29

+0

你可以给我这个笨蛋代码吗? – 2015-04-01 09:32:59

回答

4

这是最有可能通过不包括select.css文件在您index.html文件引起的。以下内容添加到您的<head>标签在你index.html

<link rel="stylesheet" href="path/to/select.css"/> 
+1

我一直在寻找天....缺少的样式表是原因。你征服了我的心... – messerbill 2016-10-02 23:17:34