Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript React Ant设计-如何将桌子设置为100%高度_Javascript_Html_Css_Reactjs_Antd - Fatal编程技术网

Javascript React Ant设计-如何将桌子设置为100%高度

Javascript React Ant设计-如何将桌子设置为100%高度,javascript,html,css,reactjs,antd,Javascript,Html,Css,Reactjs,Antd,当父容器或浏览器窗口也调整大小时,如何将React-Ant设计表调整大小并扩展到100%高度 演示:将minHeight设置为蚂蚁桌体 .ant-table-body { min-height: 500px; } 请参阅滚动区域 <Table scroll={{ y: 500, x: 500 }} ... 将最小高度设置为蚂蚁桌体 .ant-table-body { min-height: 500px; } 请参阅滚动区域 <Table scroll={{ y:

当父容器或浏览器窗口也调整大小时,如何将React-Ant设计表调整大小并扩展到100%高度


演示:

minHeight
设置为蚂蚁桌体

.ant-table-body {
  min-height: 500px;
}
请参阅滚动区域

<Table
  scroll={{ y: 500, x: 500 }}
...

最小高度
设置为蚂蚁桌体

.ant-table-body {
  min-height: 500px;
}
请参阅滚动区域

<Table
  scroll={{ y: 500, x: 500 }}
...

任何使用%修复的方法都存在不同屏幕大小的问题任何使用%修复的方法都存在不同屏幕大小的问题