我有一個包含各種文本值的UI角度選擇下拉菜單。使用CSS我在每個值的左邊添加了字體超棒的圖標。我想在下拉列表中的「全部」選項左側添加特定的字體超讚圖標,但我無法定位特定的下拉選項。不知道這是否可以使用CSS完成,或者如果我需要使用JS以某種方式定位它。在任何幫助將不勝感激,謝謝。UI選擇下拉角 - 無法定位第一個下拉選擇添加特定的CSS
<div class="form-group">
<ui-select id="teamMemberType" ng-model="historyCtrl.queryParams.teamMemberType" theme="bootstrap" ng-change="historyCtrl.filterContent()">
<ui-select-match placeholder="Search">{{$select.selected.display}}</ui-select-match>
<ui-select-choices group-by="'group'" repeat="option.value as option in (historyCtrl.filters.options.teamMemberType | filter: $select.search) track by option.value">
<span id="created" ng-bind-html="option.display| highlight: $select.search"></span>
</ui-select-choices>
</ui-select>
</div>
是您的選擇中的所有選項選項標籤嗎? – Basilf