瀏覽代碼

首页顶部广告

Xiao_123 5 月之前
父節點
當前提交
589f96475d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/recruit/personal/home/index.vue

+ 2 - 1
src/views/recruit/personal/home/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <!-- 顶部广告图 -->
-    <div v-if="topAdvertise" class="banner" :style="{'background': 'url('+topAdvertise+') no-repeat'}"></div>
+    <div v-if="topAdvertise" class="banner" :style="{'background-image': 'url('+topAdvertise+')'}"></div>
     <div class="stickyBox py-5">
       <headSearch @handleSearch="handleSearch"></headSearch>
     </div>
@@ -192,6 +192,7 @@ onMounted(async () => {
   width: 100%;
   height: 110px;
   // background: url("@/assets/headerBg.jpg") no-repeat;
+  background-position: no-repeat;
   background-size: contain;
 }
 .common-width {