Browse Source

计算高度

devlop
杨阁辉 4 years ago
parent
commit
3949404ac3
1 changed files with 2 additions and 2 deletions
  1. 4
      pages/start-page/index.vue

4
pages/start-page/index.vue

@ -96,8 +96,8 @@ export default {
}
},
onLoad() {
this.pageHight = 'height:' + (window.screen.height - 60) + 'px'
console.log(this.pageHight)
// this.pageHight = 'height:' + (window.screen.height - 60) + 'px'
this.pageHight = 'height:' + (document.documentElement.clientHeight - 60) + 'px'
}
}
</script>

Loading…
Cancel
Save