body{
background:url(../img/bg.jpg)no-repeat fixed 0 0/100% 100%;
}
May I ask why this is?
Have you added a viewport to the mobile page?
Why don’t you add the background image to a p, and then set the style of p: width: 100%; height: 100%? Isn’t it bad to put it directly on the body?
I tried it and everything is normal
Try to write the background attributes separately, such as background-image, background-position. . . Like this~
no-repeat with a space in front
I was so stupid. I have never noticed that I need to increase the width and height of html and body by 100%. Thanks to all the great people above.
Have you added a viewport to the mobile page?
Why don’t you add the background image to a p, and then set the style of p: width: 100%; height: 100%? Isn’t it bad to put it directly on the body?
I tried it and everything is normal
Try to write the background attributes separately, such as background-image, background-position. . . Like this~
no-repeat with a space in front
I was so stupid. I have never noticed that I need to increase the width and height of html and body by 100%. Thanks to all the great people above.