Skip to content

Space 中 align='center' 和 width: '100%' 冲突 #34609

@stormrise

Description

@stormrise
  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://codepen.io/stormrise/pen/rNpLYbw

Steps to reproduce

https://ant.design/components/space-cn/#components-space-demo-vertical

按照文档说明设置 width: 100% 独占一行。并且我的元素也是width: 100%占满一行。

只有 width: 100%是正常的一行占满,

如果加上了align='center'就会出现占不满的情况。

What is expected?

正常占满一行

What is actually happening?

元素的width 100%没有生效

Environment Info
antd 4.19.2
React 17.0.2
System Window10
Browser chorme 96

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions