我有这两个 div,并希望将其中一个居中。任何帮助,将不胜感激。
<div class="PicturesBackground" style="height:350px; width: 100%; background: green; border-radius:15px;">
<div class="ContentArea" style="height:80%; width:90%; background: blue; margin-top:30px"></div></div>
我尝试过使用边距和填充,它将边距/填充放在整个事物上,而不仅仅是背景 div 中的 ContentArea div。