更新时间:2022-04-09 09:51:07
我正在使用react,我只是将以下代码段添加到了Table组件的中。 css
I'm using react and I just added the following snippet to my Table component's .css
.ag-header-cell-label {
justify-content: center;
}
我要覆盖 .css $我通过devtools检查发现了
ag-grid
中的c $ c>类,发现它正在使用flexbox进行显示。
I'm overriding the .css
class class from ag-grid
which I found via devtools inspection, and discovered it's using flexbox for display.
请参阅示例(不做出反应,但概念相同): https://embed.plnkr.co/O3NI4WgHxkFiJCyacn0r/
See example (not react but same concept): https://embed.plnkr.co/O3NI4WgHxkFiJCyacn0r/