作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我正在为我的下拉框使用 Bootstrap select ( https://silviomoreto.github.io/bootstrap-select/)。
<select id="dataBox" name="dataBox" title="Select data" class="selectpicker form-control"></select>
但是,这里的问题是标题看起来(字体和颜色)与周围区域输入框中的占位符略有不同。如下图所示。无论如何格式化标题而不是占位符?
这是一个标题
这是一个占位符
最佳答案
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/
我是一名优秀的程序员,十分优秀!