2.12.0
窗户 7,铬 50
https://ant.design/components/table-cn/#components -table-demo-fixed-header
使用固定头表
不显示灰色箭头和滚动条
scroll-y 显示只要使用固定标题
我使用了 https://github.com/initialdmg/ant-design/commit/d3beb3eaee4eecd72db16f60ebbf508123fd17db
See https://github.com/ant-design/ant-design/issues/4637
试过四种方式解决头部多余的 scrollbar,但是都会影响列的对齐或导致其他样式问题。
Tried four ways ot fix the extra scrollbar style of table header, but all would breaks column align or cause other strange issues.
谢谢
您还希望将溢出样式更改为隐藏以更改边距。 这解决了表格隐藏部分表格的问题。
.ant-table-fixed-header .ant-table-scroll .ant-table-header{
overflow: hidden !important;
margin-bottom: 0px !important;
}
最有用的评论
See https://github.com/ant-design/ant-design/issues/4637
试过四种方式解决头部多余的 scrollbar,但是都会影响列的对齐或导致其他样式问题。
Tried four ways ot fix the extra scrollbar style of table header, but all would breaks column align or cause other strange issues.