0
In this plunk我有一个允许多个条目的ui选择。我将border
颜色更改为蓝色,并尝试使用.font-control:focus
获得焦点时,将颜色更改为红色,但这不起作用。有任何想法吗?ui选择更改对焦颜色不起作用
HTML
<style>
.form-control {
border-color: blue;
}
.form-control:focus {
border-color: red;
}
</style>
<br/><br/>
<ui-select multiple tagging tagging-label="(custom 'new' label)"
ng-model="multipleDemo.colors" sortable="true"
style="width: 300px;" title="Choose a color">
<ui-select-match placeholder="Select colors...">{{$item}}</ui-select-match>
<ui-select-choices repeat="color in availableColors | filter:$select.search">
{{color}}
</ui-select-choices>
</ui-select>
的Javascript:
var app = angular.module('demo', ['ngSanitize', 'ui.select']);
app.controller('ctl', function ($scope) {
$scope.availableColors = ['Red','Green','Blue','Yellow','Magenta',
'Maroon','Umbra','Turquoise'];
$scope.multipleDemo = {};
$scope.multipleDemo.colors = ['Blue','Red'];
});
请看看这个普拉克,边框不会变成红色焦点http:// plnkr.co/edit/mkm42Dxet4zoAdSqSdMv?p=preview – ps0604
对不起,我犯了一个错误,你应该删除'。你的自定义类体> .ui-select-bootstrap.open'的'body',而不是: – llp
相反:'。你的自定义类> .ui-select-bootstrap.open' – llp