wzh 4 anos atrás
pai
commit
1dc5318e07
3 arquivos alterados com 19 adições e 1 exclusões
  1. 1 0
      index.html
  2. 1 1
      src/components/Number.vue
  3. 17 0
      src/styles/index.scss

+ 1 - 0
index.html

@@ -20,6 +20,7 @@
       #app {
         height: 100%;
         width: 100%;
+        position: relative;
       }
     </style>
   </head>

+ 1 - 1
src/components/Number.vue

@@ -6,7 +6,7 @@
       :class="['box', 'df', 'aic', `${index == 2 ? '' : 'mb45'}`]"
     >
       <div :class="['icon', `mr20`]">
-        <img class="wh100" :src="exchangeUrl(item.icon)" alt="" />
+        <img class="wh100p" :src="exchangeUrl(item.icon)" alt="" />
       </div>
       <div class="count">
         <div class="title mb2">{{ item.title }}</div>

+ 17 - 0
src/styles/index.scss

@@ -1,5 +1,14 @@
 @import 'transition';
 
+.wh100p{
+  width: 100%;
+  height: 100%;
+}
+
+.lh100p{
+  line-height: 100%;
+}
+
 
 .tac {
   text-align: center;
@@ -95,6 +104,14 @@
   margin-bottom: 5px;
 }
 
+.mb2{
+  margin-bottom: 2px;
+}
+
+.mb3{
+  margin-bottom: 3px;
+}
+
 .mb10{
   margin-bottom: 10px;
 }