📜  html 中文本的填充 - CSS 代码示例

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

代码示例1
div {
  /*Padding for text from the top*/
  padding-top: 50px;
  /*Padding for text from the right*/
  padding-right: 30px;
  /*Padding for text from the bottom*/
  padding-bottom: 50px;
  /*Padding for text from the left*/
  padding-left: 80px;
  /*If you want to add same amout of padding to all sides use padding*/
  padding: 100px;
}