【问题标题】:freeze the header of rpivotTable shiny冻结 rpivotTable 的表头闪亮
【发布时间】:2019-03-31 01:36:44
【问题描述】:

在闪亮的rpivotTable 中如何冻结标题?

我知道如何在 css 中将滚动条添加到数据透视表,但我不知道如何冻结表头。

#PivotFinal {
  overflow-y: scroll;
}

【问题讨论】:

  • 你试过postion:fixed作为标题元素吗?
  • 我试过固定位置,但它似乎不起作用。
  • table.pvtTable thead tr th{ 背景:蓝色;位置:固定; }

标签: r shiny rpivottable


【解决方案1】:

我想出了怎么做,在 .css 文件中我添加了以下代码。

table.pvtTable thead th{
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 999;
}

【讨论】:

    猜你喜欢
    • 2016-11-03
    • 2023-03-27
    • 1970-01-01
    • 2018-11-28
    • 2015-08-12
    • 2016-01-19
    • 1970-01-01
    • 1970-01-01
    • 2019-02-12
    相关资源
    最近更新 更多