如果不是100%,为什么不是100%?
我试图将菜单分为两个项目,第一个是徽标,第二个是所有其他菜单项。如何控制宽度?
我的代码:
<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>