简体   繁体   中英

Vue quasar element doesn't get 100% height of it's parent

I am using vue3 with quasar 1.1.13

I have set height: 100vh; width: 100vw height: 100vh; width: 100vw for my div element, and heigth: 100% for it's child. It doesn't work for some reason

screenshot

code

I have tried the same set up in plain HTML, it works

When you use height: 100% is fills it's parent. Since the top parent ( <div class="q-app"> ) does not have height: 100vh, it is not filling your entire page.

Link to more information: How to make a div 100% height of the browser window?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM