CSS sets whether the background image is fixed or scrolls with the rest of the page.

test{ background: url(images/video-bg3.png) no-repeat center;
width:100%;
height:600px;
background-attachment: fixed;
}

Guess you like

Origin blog.csdn.net/qq_42177117/article/details/114080749