2015-04-01 23 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

相關問題