如何更改 html table 中仅使用的边框的颜色?
How to change colour of only used borders in html table?
我的 Rmd 演示文稿中有这个 table:
这是通过 stargazer(fit, type = "html")
获得的
我试图在我的 Rmd 中包含 css,例如:
table, th, td {border: 1px solid white;}
结果是:
我想重新给实际使用过的边框上色。像这样(photoshop 编辑):
我的想法是使用 css 来做到这一点,因为我有超过 40 个 table。我该怎么做?
所以您只想更改颜色?
尝试只使用 border-color
属性,否则添加大小和类型将创建一个新边框。例如,
table, th, td {
border-color: white;
}
我的 Rmd 演示文稿中有这个 table:
这是通过 stargazer(fit, type = "html")
我试图在我的 Rmd 中包含 css,例如:
table, th, td {border: 1px solid white;}
结果是:
我想重新给实际使用过的边框上色。像这样(photoshop 编辑):
我的想法是使用 css 来做到这一点,因为我有超过 40 个 table。我该怎么做?
所以您只想更改颜色?
尝试只使用 border-color
属性,否则添加大小和类型将创建一个新边框。例如,
table, th, td {
border-color: white;
}