javascript - How to make the body's background image display in full screen at different resolutions? Small resolutions have vertical scroll bars, and the extra content has no background? How to deal with it?
I have a large screen resolution and the background is displayed in full screen without any problem. When I switch to a small screen, the scrolling content has no background. How can I solve it?
Code:
你的height写成了100%.滚动出现当然没有背景了
body设置
background-size:cover;
overflow:hidden;