我想创建跨越整个 div 的简单块按钮。我正在使用 react-bootstrap 包在 React 中执行此操作。这是我正在使用的代码:-
<Container>
<Row className="justify-content-center">
<Col xs={10} sm={5} md={3}>
<Form className="form-container">
<Form.Group controlId="formEmail" className="form-element">
<Form.Label>Enter Email Address</Form.Label>
<Form.Control type="email" placeholder="Email Address"></Form.Control>
</Form.Group>
<Form.Group controlId="formPwd" className="form-element">
<Form.Label>Enter Password</Form.Label>
<Form.Control type="password" placeholder="Password"></Form.Control>
</Form.Group>
<Form.Group className="form-element">
<Button variant="outline-primary" type="submit" block>Login</Button>
</Form.Group>
</Form>
</Col>
</Row>
</Container>
该按钮的宽度应与上面的文本区域相同。如何创建此块按钮?