Procházet zdrojové kódy

嵌入页面增加关闭按钮

wandequan před 1 rokem
rodič
revize
da5c650fd9
1 změnil soubory, kde provedl 13 přidání a 1 odebrání
  1. 13 1
      src/components2/JumpWeb.vue

+ 13 - 1
src/components2/JumpWeb.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="iframeContent" v-show="show">
         <div class="back" @click="back"></div>
-        <iframe :src="url" frameborder="0"></iframe>
+        <iframe :src="'https://www.baidu.com/s?ie=utf8&oe=utf8&tn=87048150_dg&ch=1&wd=vd'" frameborder="0"></iframe>
     </div>
 </template>
 
@@ -51,5 +51,17 @@ export default {
         width: 100%;
         height: 100%;
     }
+
+    .back {
+        width: 32px;
+        height: 32px;
+        margin: 10px 20px;
+        background: #c5c5c5 url(~@/assets/img/tool/close.png) center center / 60% 60% no-repeat;
+        position: absolute;
+        top: 0px;
+        right: 0px;
+        z-index: 999;
+        border-radius: 32px;
+    }
 }
 </style>