我想在 html 文件上设置背景图片,但它没有覆盖页面的整个长度和宽度,而是上升到一个小盒子里
我试过使用
<body backround="">
但它似乎仍然没有帮助
body{
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
background-color: blanchedalmond;
}
body{
background:
"https://th.bing.com/th/id/R.1f7d6c5c6cf7c6ee0a1c2168216394d2?rik=zTHGuOo31kdBNA&riu=http%3a%2f%2fgetwallpapers.com%2fwallpaper%2ffull%2fd%2fc%2fd%2f1241579-heavy-metal-wallpapers-hd-1920x1080-lockscreen.jpg&ehk=HWiLpk9ZFyCp%2bUhVMGRTxZ3d0IgkjYxJkoZcVTOMhSI%3d&risl=&pid=ImgRaw&r=0"
}
1。背景尺寸:封面;
2. 背景尺寸:100% 100%;
body {
background-image: url(anyImg);
background-repeat: no-repeat;
background-size: cover;
}