我想用某些菜單鏈接製作標題。內部股利並不是從頂部開始的。請建議我如何爲此編寫CSS。無法正確定位標題
<div style ="width:100%; background-color:Aqua; height:100px;">
<div style="width:876px;background-color:Blue;margin:20px auto;height:60px;">
<h3>menu items</h3>
</div>
</div>
此外,當我調整瀏覽器的大小(在mozilla上按shift + ctrl + M)外部潛水不會適當地包裹內部div。
爲什麼不頭,而不是試圖通過保證金移動內部DIV中使用填充? – Slime