问题描述
谁能向我提供一些有关如何设置 react-tabulator 表格样式的信息?我一直在尝试更改标题颜色、边框等,但徒劳无功.我只在文档中找到了类名,例如 className="table-bordered table-striped"
但这对我没有帮助.我想创建自定义样式.请帮帮我!
Can anyone please provide me some info on how to style a react-tabulator table? I have been trying to change header color, borders etc. but in vain. I only found class names in the documentation like className="table-bordered table-striped"
but that wont help me. I want to create custom styling. Please help me out !
推荐答案
只需克隆现有的样式 css 文件并修改即可,例如:https://github.com/ngduc/react-tabulator/blob/master/demo/src/index.js#L7
Just clone the existing style css file and modify it, example:https://github.com/ngduc/react-tabulator/blob/master/demo/src/index.js#L7
然后将其导入到您的项目中.我计划很快添加一些 Doc 来设计样式.谢谢.
Then import it to your project.I plan to add some Doc for styling soon. Thanks.
这篇关于如何设置 react-tabulator 表的样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!