Showing
1 changed file
with
3 additions
and
5 deletions
@@ -181,11 +181,9 @@ export default { | @@ -181,11 +181,9 @@ export default { | ||
181 | }, | 181 | }, |
182 | showLay() { | 182 | showLay() { |
183 | this.bodyElStyle = document.querySelector('body').style; | 183 | this.bodyElStyle = document.querySelector('body').style; |
184 | - this.bodyElStyle.position = 'absolute'; | ||
185 | - this.bodyElStyle.top = 0; | ||
186 | - this.bodyElStyle.left = 0; | ||
187 | - this.bodyElStyle.right = 0; | ||
188 | - this.bodyElStyle.bottom = 0; | 184 | + this.bodyElStyle.position = 'fixed'; |
185 | + this.bodyElStyle.width = '100%'; | ||
186 | + this.bodyElStyle.height = '100%'; | ||
189 | this.bodyElStyle.overflow = 'hidden'; | 187 | this.bodyElStyle.overflow = 'hidden'; |
190 | this.layFlag = true; | 188 | this.layFlag = true; |
191 | }, | 189 | }, |
-
Please register or login to post a comment