提交 7bb325e0 authored 作者: lihuihui's avatar lihuihui

修改样式

上级 5e194a8e
...@@ -637,6 +637,9 @@ export default { ...@@ -637,6 +637,9 @@ export default {
display: flex; display: flex;
justify-content: center; justify-content: center;
padding-bottom: 30px; padding-bottom: 30px;
@media screen and (min-width: 320px){
overflow: hidden !important;
}
.homepage-son { .homepage-son {
width: 80%; width: 80%;
margin: 0 auto; margin: 0 auto;
......
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
const height = document.documentElement const height = document.documentElement
? document.documentElement.clientHeight ? document.documentElement.clientHeight
: window.innerHeight : window.innerHeight
this.heightdy = height this.heightdy = this.isTerminal() === 'Mobile' ? '700' : height
}, },
watchScroll() { watchScroll() {
this.scrollTop = this.scrollTop =
...@@ -47,6 +47,12 @@ export default { ...@@ -47,6 +47,12 @@ export default {
if (this.dyScroll) { if (this.dyScroll) {
this.dyScroll(present, this.scrollTop) this.dyScroll(present, this.scrollTop)
} }
},
isTerminal() {
const detectDeviceType = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)
? 'Mobile'
: 'Desktop'
return detectDeviceType
} }
}, },
created() { created() {
......
...@@ -800,6 +800,7 @@ export default { ...@@ -800,6 +800,7 @@ export default {
position: relative; position: relative;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
overflow: hidden;
h3 { h3 {
width: 100%; width: 100%;
display: inline-flex; display: inline-flex;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论