【发布时间】:2015-12-03 15:56:24
【问题描述】:
我们有两个下拉菜单。基于第一个下拉事件发生变化,第二个下拉值正在被填充。
如何更改第二种下拉菜单的外观,使其在启用和禁用状态下都不同?
在这两个下拉列表中,它们看起来都已启用,但在我们选择国家之前,这些州没有以任何方式加载。select CSS 在 IE 中表现得像例外,但在 Chrome 中却没有。它看起来在 Chrome 中已启用。
//****************//
button,
input,
optgroup,
select,
textarea {
margin: 0;
font: inherit;
color: inherit;
}
When I removed the Color inherit from boot strap It makes the difference.How to override the style sheet which effecs the color to the state dropdown in the customized CSS
<div class="item1" id="countries">
<div class="selectbox">
<select data-bind="options: Countries,
optionsText: $data,
optionsValue: $data,
value: SelectedCountry,
event: { change: $parent.CountryActionChanged }">
</select>
</div>
</div>
<div class="item2" id="states">
<div class="selectbox">
<select data-bind="options: States,
optionsText: 'Name',
optionsValue: 'Id',
value: SelectedStateType,
event: { change: $parent.StateActionChanged },
enable: $parent.IsStateType"
>
</select>
</div>
</div>
【问题讨论】:
-
这对我来说看起来不像是一个淘汰赛的问题。只需使用 CSS 设置样式?
标签: html css dropdownbox