[英]angularjs selectBoxIt customize theme
I use selectBoxIt component in my project. 我在项目中使用selectBoxIt组件。 And I would like change style, like this:
我想更改样式,如下所示:
And I use next code for implement this component: 我使用下一个代码来实现此组件:
<select id="appVersions">
<option ng-repeat="app in appVersions" value="{{app.version}}">APP vr.{{app.version}}</option>
</select>
var apps = $('#appVersions').selectBoxIt({
theme: 'jqueryui',
autoWidth: true
});
$timeout(function () {
apps.data('selectBox-selectBoxIt').refresh();
});
But after it he transform to default style, how to change style? 但是在他转换为默认样式之后,如何更改样式? Thanks a lot.
非常感谢。
Add id to tags select 为标签添加ID选择
#appVersions .selectboxit-container {
margin-top: 10px;
margin-left: 70px;
background-color: $main-background;
}
#appVersions .selectboxit-container span #SelectBoxItText {
color: #FFB201;
font-weight: bold;
}
#appVersions ul li a {
color: #FFB201;
}
#appVersions ul li a:hover {
font-weight: bold;
}
#appVersions ul {
background-color: $main-background;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.