xyzsun commited on
Commit
70c8ce5
·
verified ·
1 Parent(s): 0a2ea59

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -1
index.html CHANGED
@@ -10,6 +10,7 @@
10
  margin: 0;
11
  padding: 0;
12
  display: flex;
 
13
  justify-content: center;
14
  align-items: center;
15
  min-height: 100vh;
@@ -20,11 +21,12 @@
20
 
21
  #poem {
22
  font-size: 1.5em;
23
- line-height: 1.0; /* 行距/
24
  }
25
 
26
  h1 {
27
  margin-bottom: 10px; /* 添加标题后的下边距 */
 
28
  }
29
  </style>
30
  </head>
 
10
  margin: 0;
11
  padding: 0;
12
  display: flex;
13
+ flex-direction: column; /* 设置垂直方向布局 */
14
  justify-content: center;
15
  align-items: center;
16
  min-height: 100vh;
 
21
 
22
  #poem {
23
  font-size: 1.5em;
24
+ line-height: 1.4; /* 调整行距,原为1.6 */
25
  }
26
 
27
  h1 {
28
  margin-bottom: 10px; /* 添加标题后的下边距 */
29
+ margin-top: 0; /* 清除默认的上边距 */
30
  }
31
  </style>
32
  </head>