我使用了一个antd抽屉。抽屉的左边和右边的边距不能被删除,所以步骤组件被从左边和右边推了几个边距(红色圆圈)。
然后,蓝色滑块也有一个空白(绿色圆圈)。
我试着把margin:0px
和padding:0px
,但似乎没有解决这些问题。
代码沙箱:https://codesandbox.io/s/basic-antd-4-19-5-forked-iq13nx?file=/index.js
我使用了一个antd抽屉。抽屉的左边和右边的边距不能被删除,所以步骤组件被从左边和右边推了几个边距(红色圆圈)。
然后,蓝色滑块也有一个空白(绿色圆圈)。
我试着把margin:0px
和padding:0px
,但似乎没有解决这些问题。
代码沙箱:https://codesandbox.io/s/basic-antd-4-19-5-forked-iq13nx?file=/index.js
2条答案
按热度按时间ne5o7dgx1#
如果要删除红色边距,需要将左右边距设置为0,并在垂直边保持24px:
对于蓝色下划线(图像中的绿色信号),必须更改此样式:
wmvff8tz2#
你也可以使用使用了
Drawer
的道具“bodyStyle
“来修改正文的样式: