diff --git a/css/25.css b/css/25.css index a7f9bc4..451c6c5 100644 --- a/css/25.css +++ b/css/25.css @@ -12,6 +12,16 @@ body{ position: relative; /* 100%窗口宽度 */ width: 100vw; + display: flex; +} +.main{ + flex: 1; + height: calc(100vh - 43px); + position: relative; + top: 43px; + display: flex; + justify-content: center; + align-items: center; } #checkbox{ /* 隐藏复选框 */ diff --git a/html/25.html b/html/25.html index c029af9..7deb434 100644 --- a/html/25.html +++ b/html/25.html @@ -53,6 +53,9 @@ +
+ 我是内容区 +