gpt4 book ai didi

html - 如何在 Bootstrap select 中设置标题样式

转载 作者:搜寻专家 更新时间:2023-10-31 08:51:41 28 4
gpt4 key购买 nike

我正在为我的下拉框使用 Bootstrap select ( https://silviomoreto.github.io/bootstrap-select/)。

<select id="dataBox" name="dataBox" title="Select data" class="selectpicker form-control"></select> 

但是,这里的问题是标题看起来(字体和颜色)与周围区域输入框中的占位符略有不同。如下图所示。无论如何格式化标题而不是占位符?

这是一个标题

enter image description here

这是一个占位符

enter image description here

最佳答案

Bootstrap-select 很棘手。这里的答案是这样做:

.bootstrap-select > .dropdown-toggle[title='Select role'],
.bootstrap-select > .dropdown-toggle[title='Select role']:hover,
.bootstrap-select > .dropdown-toggle[title='Select role']:focus,
.bootstrap-select > .dropdown-toggle[title='Select role']:active {
color: grey;
}

关于html - 如何在 Bootstrap select 中设置标题样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41898309/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com