diff --git a/src/main/resources/views/layouts/v4/home/index.html b/src/main/resources/views/layouts/v4/home/index.html index bb0f0e8..479a41c 100644 --- a/src/main/resources/views/layouts/v4/home/index.html +++ b/src/main/resources/views/layouts/v4/home/index.html @@ -16,7 +16,8 @@ layout("/layouts/v4/baseLayout.html"){ .section-banner .banner-img img { width: 100%; - height: 100%; + height: auto; + display: block; /*object-fit: cover;*/ } diff --git a/src/main/resources/views/layouts/v4/home/stats.js b/src/main/resources/views/layouts/v4/home/stats.js index 56a54d6..fb06776 100644 --- a/src/main/resources/views/layouts/v4/home/stats.js +++ b/src/main/resources/views/layouts/v4/home/stats.js @@ -122,7 +122,8 @@ const stats = { display: flex; justify-content: space-between; align-items: center; - margin: -130px auto 0; + /* 随 banner 图片自然向下排列,避免背景图较长时统计区覆盖图片内容。 */ + margin: 20px auto 0; /*border: 1px solid #e8e8e8;*/ }