如何在蚂蚁设计中改变ROW的宽度?

时间:2020-03-12 02:55:48

标签: reactjs ant-design-pro

如果不是100%,为什么不是100%?

enter image description here

我试图将菜单分为两个项目,第一个是徽标,第二个是所有其他菜单项。如何控制宽度?

我的代码:

    <Header style={headerStyles}>
        <Row>
            <Col flex="auto" >
            <Title style={{ color: "rgba(0, 0, 0, 0.85)", margin: 0, fontSize: "18px" }}>
                <img src={Logo} alt="Logo" style={{ height: "32px", marginRight: "16px" }}/>
                Profile app
                <Divider type="vertical" style={{ background: "#ececec", height: "20px" }} />
            </Title>
            </Col>
            <Col flex="auto">
            <Button type="primary">Авторизация</Button>
            </Col>
        </Row>
    </Header>

0 个答案:

没有答案