File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010@import url ('https://fonts.googleapis.com/css2?family=Pacifico&display=swap' );
1111
1212body {
13- height : 100vh ;
13+ min- height: 100vh ;
1414 display : flex;
1515 align-items : center;
1616 justify-content : center;
1717 background-color : # ff758f ;
1818 overflow-x : hidden;
19- margin : 0 ; /* 确保无边距以更好地居中 */
19+ margin : 0 ;
20+ padding : 0 ;
21+ }
22+
23+ .valentine-container {
24+ position : fixed;
25+ top : 0 ;
26+ left : 0 ;
27+ width : 100vw ;
28+ height : 100vh ;
29+ display : flex;
30+ align-items : center;
31+ justify-content : center;
32+ z-index : 1000 ;
2033}
2134
2235.happy-valentines {
2336 position : relative;
2437 width : 400px ;
25- height : 500px ; /* 调整高度以适应消息 */
38+ height : 500px ;
2639 display : flex;
2740 flex-direction : column;
2841 align-items : center;
29- justify-content : center; /* 确保内容垂直居中 */
42+ justify-content : center;
3043}
3144
3245.flip-card {
303316
304317< div class ="hearts-container " id ="heartsContainer "> </ div >
305318
306- < div class ="happy-valentines ">
307- < div class ="flip-card " id ="flipCard ">
308- < div class ="flip-card-inner ">
309- < div class ="flip-card-front valentines-day-card ">
319+ < div class ="valentine-container ">
320+ < div class ="happy-valentines ">
321+ < div class ="flip-card " id ="flipCard ">
322+ < div class ="flip-card-inner ">
323+ < div class ="flip-card-front valentines-day-card ">
310324 < div class ="clouds "> </ div >
311325 < div class ="hearts ">
312326 < div class ="heartOne ">
337351 </ div >
338352 </ div >
339353 </ div >
340-
341354 < div style ="text-align: center; margin-top: 20px; ">
355+ < button onclick ="logout() " class ="logout-btn "> 返回</ button >
356+ </ div
342357 < button onclick ="logout() " class ="logout-btn "> 返回</ button >
343358 </ div >
344359</ div >
You can’t perform that action at this time.
0 commit comments