Css 如何在引导中创建Parrallax封面

Css 如何在引导中创建Parrallax封面,css,Css,我无法创建Parralax封面 .divcover { border: #cccccc solid 1px; background-attachment: fixed; background-position: center center; background-repeat: no-repeat; min-height: 200px; vertical-align: bottom; border: none; border-radius: 4px 4px 0 0; margin-top: 20

我无法创建Parralax封面

.divcover {
border: #cccccc solid 1px;
background-attachment: fixed;
background-position: center center;
background-repeat: no-repeat;
min-height: 200px;
vertical-align: bottom;
border: none;
border-radius: 4px 4px 0 0;
margin-top: 20px;
/*margin-bottom: 20px;*/
}

}

此样式包含textshadow,但这与引导有问题 请帮帮我

这对你有帮助

.divcover {
    border: #cccccc solid 1px;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    color: #fff;
    text-shadow: 1px 1px 0px #bbb;
    position: relative;
    overflow: visible;
    padding-right: 200px;
    min-height: 200px;
    vertical-align: bottom;
    border: none;
    border-radius: 4px 4px 0 0;
    margin-top: 20px;
    /*margin-bottom: 20px;*/
}

.divCoverCover {
    background-color: rgba(0,0,0,0.4);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 4px 4px 0 0;
}
.divcover {
    border: #cccccc solid 1px;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    color: #fff;
    text-shadow: 1px 1px 0px #bbb;
    position: relative;
    overflow: visible;
    padding-right: 200px;
    min-height: 200px;
    vertical-align: bottom;
    border: none;
    border-radius: 4px 4px 0 0;
    margin-top: 20px;
    /*margin-bottom: 20px;*/
}

.divCoverCover {
    background-color: rgba(0,0,0,0.4);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 4px 4px 0 0;
}