Эх сурвалжийг харах

Merge branch 'dev/v4.9.31_zsy' of qmx/jy into release/v4.9.31

zhangsiya 1 жил өмнө
parent
commit
2fcdd73b89

+ 5 - 2
src/web/staticres/common-module/exhibition/css/index_pc.css

@@ -18,9 +18,12 @@
     width: 100%;
     height:100%;
 }
-#vm_exhibition .head img {
+#vm_exhibition .head .img-con{
     width: 100%;
-    height:100%;
+    height: 100%;
+    background-size: cover;
+    background-position: center;
+    background-repeat: no-repeat;
 }
 
   /*#vm_exhibition .head content {*/

+ 2 - 1
src/web/templates/exhibition/pc/index.html

@@ -37,7 +37,8 @@
       <div class="head">
           {{range $k,$v:=Ad "pc-exhibition-index-head" -1 .Host (cookie "SESSIONID")}}
               <div class="exhibition-head"  onclick="golink({{$v.S_link}})">
-                  <img src="{{Msg "seo" "cdn"}}{{$v.S_pic}}" alt="">
+<!--                  <img src="{{$v.S_pic}}" alt="">-->
+                  <div class="img-con" style="background-image: url({{$v.S_pic}})"></div>
               </div>
           {{end}}
 <!--        <div class="content">-->