我试图将一个弹性盒容器放置在彼此旁边,以便它们并排放置,如下所示:
这是我到目前为止所拥有的:
.container {
display: flex;
align-items: flex-start;
flex-direction: row;
justify-content: flex-start;
border: 3px dashed black;
width: 750px;
height: 750px;
}
.container1 {
display: flex;
align-items: flex-start;
flex-direction: row;
justify-content: flex-start;
border: 3px dashed black;
width: 1500px;
height: 50px;
}
.container2 {
display: flex;
align-items: flex-start;
flex-direction: row;
justify-content: flex-start;
border: 3px dashed black;
width: 750px;
height: 750px;
}Run Code Online (Sandbox Code Playgroud)
<div class="container1"></div>
<div class="container"></div>
<div class="container2"></div>Run Code Online (Sandbox Code Playgroud)