From 0368a88c214ee96eb2290979d3f9750c2456506f Mon Sep 17 00:00:00 2001 From: YouM <1055965862@QQ.COM> Date: Thu, 10 Nov 2022 11:44:12 +0800 Subject: [PATCH 1/2] 'fix' --- css/nutssss.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/css/nutssss.css b/css/nutssss.css index bd2b53b..301cbc2 100644 --- a/css/nutssss.css +++ b/css/nutssss.css @@ -106,7 +106,7 @@ body { .meBox-text { width: 80%; - height: 45%; + height: 29.8%; overflow: hidden; text-align: center; color: rgb(70, 70, 70); @@ -302,12 +302,13 @@ body { .meBox { margin-left: 3%; + margin-right: -5px; } .meBox:hover { width: 21rem; - height: 26rem; - margin: 95px 0 0 2.5%; + height: 34rem; + margin: 95px -5px 0 2.5%; } #cmdBox { @@ -318,6 +319,7 @@ body { @media screen and (max-width: 1120px) { .meBox { float: none; + height: 30rem; margin: 100px auto 100px; } @@ -353,6 +355,7 @@ body { @media screen and (max-width: 768px) { .meBox { width: 300px; + height: 30rem; } .meBox:hover { From ff4ebb0458d9e09c0ed36bcb8712e3d168e1a5f9 Mon Sep 17 00:00:00 2001 From: YouM <1055965862@QQ.COM> Date: Sun, 13 Nov 2022 11:00:22 +0800 Subject: [PATCH 2/2] width auto fit and fix bugs --- css/nutssss.css | 48 ++++++++++++++++++++++++++++++++++-------------- index.html | 8 +++++++- 2 files changed, 41 insertions(+), 15 deletions(-) diff --git a/css/nutssss.css b/css/nutssss.css index 301cbc2..5d348b9 100644 --- a/css/nutssss.css +++ b/css/nutssss.css @@ -24,11 +24,15 @@ body { } .meBox { + /* 新增的*/ + display: table; + position: relative; float: left; width: 20rem; - height: 36rem; + /* height: 0px; */ background-color: white; margin-top: 100px; + top: -10%; border-radius: 2%; transition: all 0.3s; text-align: center; @@ -36,7 +40,7 @@ body { .meBox:hover { width: 21rem; - height: 34rem; + /* height: 0px; */ margin: 95px 0 0 -5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); } @@ -50,6 +54,7 @@ body { position: relative; top: -15%; left: 50%; + margin-top: -4.5rem; margin-left: -4rem; transition: all 0.3s; } @@ -57,7 +62,7 @@ body { .meBox:hover .headPhoto { width: 9rem; height: 9rem; - margin: -0.5rem 0 0 -4.5rem; + margin: -5.5rem 0 0 -4.5rem; transform: rotate(360deg); } @@ -89,7 +94,7 @@ body { white-space: nowrap; overflow: hidden; animation: typing 2s steps(20, end), blink-caret .3s step-end infinite alternate; - margin: -30px 0 0 90px; + margin: 18px 0 0 90px; transition: all 0.3s; } @@ -139,8 +144,15 @@ body { .meBox-Button { width: 100%; + /*在这里该宽度*/ + padding-bottom: 15rem; + transition: all 0.5s; } +.meBox:hover .meBox-Button{ + /*这里改悬浮后缩小到某个宽度*/ + padding-bottom: 10rem; +} .meBox-Button a { display: inline-block; float: left; @@ -156,6 +168,7 @@ body { .meBox-Button a:hover { color: rgb(0, 132, 255); font-size: 1.2rem; + } .meBox:hover .meBox-Button a { @@ -284,7 +297,9 @@ body { margin-bottom: 30px; /* background-color: blue; */ } - +#footer p{ + +} #footer a { text-decoration: none; color: white; @@ -307,7 +322,7 @@ body { .meBox:hover { width: 21rem; - height: 34rem; + /* height: 34rem; */ margin: 95px -5px 0 2.5%; } @@ -319,14 +334,14 @@ body { @media screen and (max-width: 1120px) { .meBox { float: none; - height: 30rem; + /* height: 30rem; */ margin: 100px auto 100px; } .meBox:hover { width: 20rem; - height: 25rem; - margin: 105px auto 100px; + /* height: 25rem; */ + margin: 100px auto 100px; } .meBox:hover .meBox-Button a { @@ -342,10 +357,15 @@ body { .meBox:hover .headPhoto { width: 8rem; height: 8rem; - margin: -0.5rem 0 0 -4rem; + margin: -5.5rem 0 0 -4rem; transform: rotate(360deg); } - + .meBox-Button{ + margin-top: 13px; + } + .meBox:hover .meBox-text { + font-size: 1rem; + } #cmdBox { float: none; margin: 0 auto 100px; @@ -355,12 +375,12 @@ body { @media screen and (max-width: 768px) { .meBox { width: 300px; - height: 30rem; + /* height: 30rem; */ } .meBox:hover { width: 300px; - height: 25rem; + /* height: 25rem; */ margin: 100px auto 100px; } @@ -380,7 +400,7 @@ body { .meBox:hover .headPhoto { width: 8rem; height: 8rem; - margin: -0.5rem 0 0 -4rem; + margin: -5.5rem 0 0 -4rem; transform: rotate(360deg); } diff --git a/index.html b/index.html index d79286b..8c5dadd 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,12 @@ QQ Telegram Twitter + Twitter + Twitter + + + + @@ -119,7 +125,7 @@ -