我正在显示这些默认宽度的 div
每次我尝试通过以下方式使这些 div 变大:
<center><h4>CONTACTO</h4></center>
<div style="width:600px; height: 70px; opacity: 0.3; background: lightGrey; border-radius: 6px;" class="shell container">
<div></div>
</div>
<br>
<div style="height: 70px; opacity: 0.3; background: lightGrey; border-radius: 6px;" class="shell container">
<div></div>
</div>
<br>
<div style="height: 70px; opacity: 0.3; background: lightGrey; border-radius: 6px;" class="shell container">
<div></div>
</div>
<br>
<div style="height: 70px; opacity: 0.3; background: lightGrey; border-radius: 6px;" class="shell container">
<div></div>
</div>
</section></center>
其中之一变宽,但它没有居中,即使我使用“center”标签也是如此。
我得到:
我想让这些 div 的大小与第一个 div 的大小相同,但居中。我尝试使用align=“center”,但它不起作用。提前致谢。
青春有我
BIG阳
相关分类