Note:我已经尝试过这个问题中提到的方法,但在我的例子中没有一个起作用。
下面是我的分页组件- pagination.jsx的链接
我希望pagination组件对齐页面的中心有响应行为,我如何实现它?我同时使用material-ui和mdbootstrap。
预期输出

发布于 2020-11-14 01:32:03
我不知道你是否已经找到了答案,但我会使用资料-UI的组件。
下面的代码将对分页组件进行居中,并添加一些顶部和底部的空白处,将其放置在更低的位置,就像您想要在图片中显示的那样。
<Box my={2} display="flex" justifyContent="center">
<Pagination count={10} showFirstButton showLastButton />
</Box>https://stackoverflow.com/questions/61671981
复制相似问题