我正在为一个朋友编写一个网站,但是当我向下滚动页面时,jumbotron 背景图像一直在跳跃。有人可以向我解释我做错了什么吗?谢谢你。
Codepen 链接在这里:https ://codepen.io/Bekahlea/pen/bGqNaVo
.jumbotron {
padding: 2rem 1rem;
margin-bottom: 2rem;
background-image: url("../images/microphone-1074362_1920.jpg");
height: 500px;
background-attachment:fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: 0.3rem;
color: white;
}
@media (min-width: 576px) {
.jumbotron {
padding: 4rem 2rem;
}
}
.jumbotron-fluid {
padding-right: 0;
padding-left: 0;
border-radius: 0;
}