【发布时间】:2016-08-18 23:40:06
【问题描述】:
我在 angular2 应用程序中使用 ng2-select(我是 angular 新手)。 我正在尝试更改 ng2-select 的 css。 当我查看我的对象时,我可以看到它的 css 来自引导程序、ng-select css 等等,我可以看到 ng-select 指令是从以下内容构建的:
<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control open" tabindex="0">
<div></div>
<span class="ui-select-match">
<!--template bindings={}-->
</span>
<input autocapitalize="off" autocomplete="false" autocorrect="off" class="ui-select-search input-xs" role="combobox" spellcheck="false" type="text" placeholder="Choose Modifiers">
<!--template bindings={}-->
<!--template bindings={}-->
但我想要一个不错的选择框 - 例如: 不知道怎么弄
select {
font-size: 15px;
border: 1px solid lightblue;
border-radius: 10px;
color: black;
padding: 8px;
width: 120px;
-webkit-appearance: none;
background-color: lightblue;
background-transparency: 0.5;
background-position: right 15px top 22px;
background-size: 18px 18px;
margin-left :20px;
margin-top: 8px;
}
【问题讨论】:
标签: css angular angular2-directives