Skip to content

Instantly share code, notes, and snippets.

@xudejian
Last active January 2, 2016 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xudejian/8348208 to your computer and use it in GitHub Desktop.
Save xudejian/8348208 to your computer and use it in GitHub Desktop.
select2 高亮条颜色修改
.my-select .select2-highlighted {
background-color: gray;
}
<div>
<select ui-select2='select2Options' ng-model="select2" data-placeholder="Pick a number">
<option value=""></option>
<option value="one">First</option>
<option value="two">Second</option>
<option value="three">Third</option>
</select>
</div>
'use strict';
angular.module('select2App')
.controller('MainCtrl', function ($scope) {
$scope.select2Options = {
dropdownCssClass: 'my-select'
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment