diff --git a/css/styles.css b/css/styles.css index 0593546..f6389d1 100644 --- a/css/styles.css +++ b/css/styles.css @@ -64,8 +64,9 @@ body { font-size: 16px; padding: 5px 10px; transition: color 0.3s ease; - position: relative; /* 添加相对定位 */ - display: flex; + position: relative; + /* 添加相对定位 */ + display: flex; gap: 35px; } @@ -74,7 +75,7 @@ body { color: #0091EA; } -.line{ +.line { position: absolute; left: 16px; bottom: 0; @@ -193,6 +194,34 @@ button { padding: 20px 50px; } +.news-elevator { + width: 50px; + height: 200px; + position: fixed; + right: 100px; + bottom: 100px; +} + +.news-elevator-list { + list-style: none; + text-decoration: none; + padding: 0; +} + +.news-elevator-list li { + background-color: lightgray; + margin-bottom: 5px; + border-radius: 5px; + width: 50px; + height: 50px; + font-size: 18px; + text-align: center; +} + +.news-elevator-list a { + text-decoration: none; +} + .footer { width: 100%; background-color: #3FA8EA; diff --git a/index.html b/index.html index 12ec33c..ba37081 100644 --- a/index.html +++ b/index.html @@ -56,8 +56,8 @@