Forráskód Böngészése

inset兼容性问题

wyling 3 éve
szülő
commit
dbdc522f40
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      src/components/VideoPreview/src/index.vue

+ 4 - 1
src/components/VideoPreview/src/index.vue

@@ -26,7 +26,10 @@ export default {
 <style scoped lang="scss">
 .background-box {
   position: fixed;
-  inset: 0;
+  left: 0;
+  right: 0;
+  top: 0;
+  bottom: 0;
   background-color: rgba($color: #000000, $alpha: 0.325);
   z-index: 9999;
   display: flex;