Commit a65af9a9 authored by xxx's avatar xxx

1

parent 40d33753
...@@ -4,6 +4,17 @@ ...@@ -4,6 +4,17 @@
</div> </div>
</template> </template>
<script>
export default {
mounted(){
var height= document.documentElement.clientHeight; //获取当前可视区域的高度存到hrt变量
window.onload = function(){ //在页面整体加载完毕时
document.getElementById('app').style.height= height + 'px'//把获取到的高度赋值给根div
}
}
}
</script>
<style lang="scss"> <style lang="scss">
html, html,
body { body {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment