소스 검색

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;