默认情况下 tt-input 是透明
,我想在聚焦时将其背景颜色更改为白色
,但是当我更改 color
时,提示不再显示,因为它被 new color
隐藏了。
怎么改?
最佳答案
background-color: transparen
已使用 javascript 设置为内联样式。
您应该使用 !important
覆盖它.
<input class="typeahead" type="text" placeholder="States of USA">
你应该使用:
.typeahead.tt-input {
background-color: black !important;
}
关于css - 更改 typeahead tt-input 背景颜色时 tt-hint 未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27704296/