闪亮 - 如何着色闪亮的边界细胞表

时间:2016-05-06 12:49:54

标签: r shiny

我有一张简单的桌子,想要以闪亮的方式展示。但在默认设置中,边框单元格是透明的。这是代码......

Philosophers Philosopher;
thread Philosopher_Thread[NUMBEROFPHILOSOPHERS];

int main()
{
        for (int Philosopher_Num = 0; Philosopher_Num < NUMBEROFPHILOSOPHERS; Philosopher_Num++)
    {
        if (Philosopher.Iterations[Philosopher_Num] > 0)
        {
            auto func = std::bind(&Philosophers::Hierarchy_Function, &Philosopher, &Philosopher_Num)
            Philosopher_Thread[Philosopher_Num] = thread (func);
            Philosopher_Thread[Philosopher_Num].join();
        }
    }
}

1 个答案:

答案 0 :(得分:0)

Shiny只是R将R代码输出到HTML代码的包装器。您必须确定创建表的确切类别,但检查here表明它应该是shiny-html-output,然后您应该有<table>。应该有一类shiny-table-output,但我没有找到证明。

但是,当你想到这一点时,你只需要在你的R中添加一个样式表。然后在那个样式表中你将完成你的CSS。

如果它是shiny-html-outputshiny-table-output,那就简单如下:

.shiny-html-output .shiny-table-output{ border: 1px solid #000; }

如果只有shiny-html-outputtable,那么上面的内容相同,但.shiny-html-output table代替。{/ p>

那就是它。尝试使用开发人员工具来检查浏览器中的元素。大多数浏览器中的F12或右键单击检查都是您需要做的。