hello i want to add background on my site but everytimes i do it wont fit in my website
i tried
background-size:auto;
i also tried cover it even make image worse
background-size:cover;
i tried background-size:contain;
too ,good then cover but not worth it there is still lots of space
am i the only one finding this tought or does any other have same problem ?
i also tried <body background="img_url" >
it doesn't help
any help will be highly appreciated
如果将图像的设置为100%,将高度设置为自动(我相信),它将保留图像的比例并覆盖父元素宽度的100%。
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.