|
@@ -77,19 +77,33 @@ onMounted(() => {
|
77
|
77
|
</script>
|
78
|
78
|
|
79
|
79
|
<style lang="less" scoped>
|
|
80
|
+
|
|
81
|
+/* 横屏 */
|
|
82
|
+@media all and (orientation : landscape) {
|
|
83
|
+ .video-pg {
|
|
84
|
+ width: 100vw;
|
|
85
|
+ height: 100vh;
|
|
86
|
+ }
|
|
87
|
+}
|
|
88
|
+
|
|
89
|
+/* 竖屏 */
|
|
90
|
+@media all and (orientation : portrait) {
|
|
91
|
+ .video-pg {
|
|
92
|
+ width: 100vh;
|
|
93
|
+ height: 100vw;
|
|
94
|
+ transform-origin: center left;
|
|
95
|
+ transform: rotate(90deg) translate3d(-50vw, -50vw, 0);
|
|
96
|
+ }
|
|
97
|
+}
|
|
98
|
+
|
80
|
99
|
.video-pg {
|
81
|
100
|
position: relative;
|
82
|
101
|
background-color: #000;
|
83
|
102
|
overflow: hidden;
|
84
|
|
- width: 100vh;
|
85
|
|
- height: 100vw;
|
86
|
103
|
display: flex;
|
87
|
104
|
align-items: center;
|
88
|
105
|
justify-content: center;
|
89
|
106
|
|
90
|
|
- transform-origin: center left;
|
91
|
|
- transform: rotate(90deg) translate3d(-50vw, -50vw, 0);
|
92
|
|
-
|
93
|
107
|
.goback {
|
94
|
108
|
position: fixed;
|
95
|
109
|
z-index: 20001;
|
|
@@ -100,7 +114,6 @@ onMounted(() => {
|
100
|
114
|
video {
|
101
|
115
|
flex: none;
|
102
|
116
|
width: 90%;
|
103
|
|
- z-index: 90%;
|
104
|
117
|
}
|
105
|
118
|
}
|
106
|
119
|
</style>
|