📜  html 中文本的边距 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:57.800000             🧑  作者: Mango

代码示例1
p {
  /*If you want to apply margin for all four sides with the same amount*/
  margin: 100px;
  /*Margin from top*/
  margin-top: 100px;
  /*Margin from bottom*/
  margin-bottom: 100px;
  /*Margin from right*/
  margin-right: 150px;
  /*Margin from left*/
  margin-left: 80px;
}