給每條邊添加不同的外邊距

Add Different Margins to Each Side of an Element 有時你想要自定義元素,使它的每一個邊具有不同的 margin。 CSS 允許你使用 margin-top、margin-right、margin-bottom 和 margin-left 來控制元素上右下左四個方向的 margin。 使你的綠方塊的頂部和左側具有 40px 的 margin,而底部和右
相關文章
相關標籤/搜索