Browse Source

chore:add ads styles

zhang-xiao 7 năm trước cách đây
mục cha
commit
56e7c220a7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      docs/.vuepress/theme/Layout.vue

+ 2 - 2
docs/.vuepress/theme/Layout.vue

@@ -2,7 +2,7 @@
   <Layout>
     <div slot="sidebar-top">
       <ins class="adsbygoogle"
-        style="display:inline-block;width:100%;height:120px"
+        style="display:block;box-sizing:border-box;width:100%;height:120px;margin:0 auto;padding: 10px 10px 0;"
         data-ad-client="ca-pub-4613560834313397"
         data-ad-slot="2465217753">
       </ins>
@@ -21,7 +21,7 @@ export default {
     setTimeout(() => {
       const adsbygoogle = window.adsbygoogle || []
       adsbygoogle.push({})
-    }, 0)
+    }, 1000)
   }
 }
 </script>