【发布时间】:2021-01-02 03:08:22
【问题描述】:
我有四个面板,目前我只想将面板放在第三个面板下方。
footerRoot: {
/* textAlign: "center", */
backgroundColor: theme.palette[0],
bottom: 0,
padding: "10px 10px 0px 10px"
}
我有很多屏幕,目前,只有三个屏幕的页脚在底部完美显示,而对于其余屏幕,页脚突然出现在页面中间。如何更改代码以将其推送到每个屏幕上的页面底部? 注意:我想避免 position: absolute。
【问题讨论】:
-
请提供更多信息,例如
html代码,一些结果图像。 -
您可以添加
position:fixed来固定底部的页脚。
标签: css reactjs flexbox footer