瀏覽代碼

inset兼容性问题

wyling 3 年之前
父節點
當前提交
dbdc522f40
共有 1 個文件被更改,包括 4 次插入1 次删除
  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;