【问题标题】:Change the CSS of the Place Holder Text in the Filter Header更改过滤器标题中占位符文本的 CSS
【发布时间】:2019-02-22 03:30:55
【问题描述】:

我正在尝试更改制表符中“过滤器”的 CSS。我想更改文本的大小和颜色,但什么也没发生。

这就是我显示列的方式:


{ title: 'Folder', field: 'title', width: '80%', formatter: '', align: 'left', headerFilter: 'input', headerFilterPlaceholder: 'Search Title', headerSort: false, sorter: '' },
{ title: 'Files', field: 'files', width: '20%', formatter: '', align: '', headerFilter: '', headerFilterPlaceholder: '1', headerSort: false, sorter: '' }

我已经尝试过以下 CSS:

.tabulator-header-filter{
    font-size:10px;
    color: #F01;
}
.tabulator-placeholder{
    font-size:10px;
    color: #F01;
}
.tabulator{
    font-size:10px;
    color: #F01;
}

【问题讨论】:

    标签: css tabulator


    【解决方案1】:

    您必须为文本框的占位符文本使用特定的 CSS 选择器。

    .tabulator-header-filter input::placeholder {
        font-size: 150%;
        color: green;
    }
    

    【讨论】:

      猜你喜欢
      • 2021-07-16
      • 2019-02-12
      • 2016-07-21
      • 1970-01-01
      • 2021-03-29
      • 2014-12-03
      • 1970-01-01
      • 1970-01-01
      • 2020-05-12
      相关资源
      最近更新 更多