diff --git a/common/common.css b/common/common.css index 25b02dd..53c4948 100644 --- a/common/common.css +++ b/common/common.css @@ -304,9 +304,7 @@ .register-advert { width: 100%; - height: 75px; background: linear-gradient(90deg, #EF4C1D 0%, #F41A10 100%); - overflow: hidden; /* background-image: url(../assets/img/index/register@2x.png); background-repeat: no-repeat; background-size: cover; */ @@ -315,14 +313,11 @@ .register-advert a { display: block; width: 100%; - height: 100%; text-align: center; } .register-advert a img { width: 100%; - height: 75px; - object-fit: cover; display: block; margin: 0 auto; } diff --git a/css/index.css b/css/index.css index 393cfed..ca7b04d 100644 --- a/css/index.css +++ b/css/index.css @@ -2261,13 +2261,20 @@ html { /* 注册广告优化 */ #index .register-advert { background: transparent; - padding: 40px 0; + padding: 0; + height: auto; +} + +#index .register-advert a { + display: block; } #index .register-advert img { border-radius: 16px; box-shadow: 0 8px 32px rgba(56, 189, 248, 0.2); transition: all 0.3s ease; + height: auto; + object-fit: contain; } #index .register-advert img:hover {