When I was making a WEBAPP cover a long time ago, I thought @media all and (min-device-pixel-ratio: 16/9) {...} was good, but in the end I didn’t have the chance to use it. You can use multiple pictures and aspect ratios. It's just 16:9, 4:3, or the perverted Meizu 15:9, but I haven't tried it, sir. . .
It is recommended to learn about the background-size attribute, https://segmentfault.com/a/11..., this is my explanation of this attribute, you can take a look, haha
background-size:cover;
The image itself is not wide and high enough. Using this parameter can make the image fill the screen, but the background will overflow the window
When I was making a WEBAPP cover a long time ago, I thought @media all and (min-device-pixel-ratio: 16/9) {...} was good, but in the end I didn’t have the chance to use it. You can use multiple pictures and aspect ratios. It's just 16:9, 4:3, or the perverted Meizu 15:9, but I haven't tried it, sir. . .
background-size:cover;
Just expand the height and width
It is recommended to learn about the background-size attribute, https://segmentfault.com/a/11..., this is my explanation of this attribute, you can take a look, haha