wangxy il y a 2 ans
Parent
commit
3551abf392
2 fichiers modifiés avec 4 ajouts et 6 suppressions
  1. 2 4
      components/footer.vue
  2. 2 2
      components/footer2.vue

+ 2 - 4
components/footer.vue

@@ -36,10 +36,8 @@
           </dl>
           <dl v-if="hotList.length">
             <dt>热门推荐</dt>
-            <div style="display: flex;justify-content: flex-start;flex-wrap: wrap">
-              <dd style="width: 30%" v-for="item in hotList" :key="item.iiId" @click="checkNews(item)">{{item.biaoqian}}</dd>
-              <dd style="width: 30%" v-for="item in hotList" :key="item.iiId" @click="checkNews(item)">{{item.biaoqian}}</dd>
-
+            <div style="display: flex;flex-direction: column;justify-content: flex-start;flex-wrap: wrap;height: 80px">
+              <dd style="margin-right: 10px;text-align: left" v-for="item in hotList" :key="item.iiId" @click="checkNews(item)">{{item.biaoqian}}</dd>
             </div>
 
           </dl>

+ 2 - 2
components/footer2.vue

@@ -35,8 +35,8 @@
              </dl>
              <dl v-if="hotList.length">
                <dt>热门推荐</dt>
-               <div style="display: flex;justify-content: flex-start;flex-wrap: wrap">
-                 <dd style="width: 30%" v-for="item in hotList" :key="item.iiId" @click="checkNews(item)">{{item.biaoqian}}</dd>
+               <div style="display: flex;flex-direction: column;justify-content: flex-start;flex-wrap: wrap;height: 80px">
+                 <dd style="margin-right: 10px;text-align: left" v-for="item in hotList" :key="item.iiId" @click="checkNews(item)">{{item.biaoqian}}</dd>
                </div>
              </dl>
            </div>