简体   繁体   中英

how do i make make height and wisdth full screen

I dont know why but my website's css work good only if the screen is on f11 mode. also my background img cut from buttom. help pls.

body {
    background-image: url("bg/logo.jpg");
     margin: 0;
     cursor: url("icon/owcursor.png"), auto;
overflow: hidden; 
}

https://i.stack.imgur.com/OnDv8.jpg

https://i.stack.imgur.com/HoaLb.jpg

I think this is what you are looking for. Width: 100%; Height: 100%;

Based on your information, you can use:

height: 100vh; width: 100vw;

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