Browse Source

高度自适应

Chencb1991 8 months ago
parent
commit
79045927b8

+ 0 - 1
src/main/resources/static/police/css/index.css

@@ -39,7 +39,6 @@ header{
 }
 .data_common_ad .banners{
     width: 100%;
-    height: 80px;
     filter: brightness(1.1);
 }
 .data_big_title{

+ 1 - 1
src/main/resources/templates/theme/audit/index.html

@@ -47,7 +47,7 @@
 
 <div class="data_common_ad" >
     <div class="banners" th:each="item,status:${banner1}">
-        <a target="_blank" th:href="${item.url}"><img th:src="${item.img}" style="border-style: none;height:80px"></a>
+        <img th:src="${item.img}" style="border-style: none;height: calc(100vw / 1440 * 60)">
     </div>
 
     <div class="data_big_title" th:if="${not #lists.isEmpty(bizZdArticle) and bizZdArticle[0] != null}">