私は2つのdivを持っており、デソップコンピュータに正しく表示されます。しかし、モバイルブラウザでは見た目が良くありません。mobilブラウザでdiv1の下にdiv2を表示する - css:flex、
私はdiv2をモバイルブラウザ(sammeの行ではない)でdiv1にすることはできますか?
<html>
<head>
<style>
.flexcontainer {
display: flex;
justify-content: space-between;
width: 1200px;
margin-bottom: 40px;
border:1px solid red;
}
.itemcontainer {
flex-wrap: wrap;
}
</style>
</head>
<body>
<div class="flexcontainer itemcontainer ">
<div id="div1" style="border:1px solid blue; width:280px; height:300px; margin-right:auto;"> Yessss </div>
<div id="div2" style="border:1px solid blue; width:280px; height:300px; margin-left:auto">No</div>
</body>
</div>
</html>
彼らがラップするとき、彼らは280pxでそれらの幅を維持する必要がありますか? ..と水平方向の配置、中央、左または...? – LGSon