我在创建视差封面时遇到问题
.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;*/
.divCoverCover {
background-color: rgba(0,0,0,0.4);
border-radius: 4px 4px 0 0;
此样式包含 textshadow 但这对 Bootstrap 有问题 请帮助我!
最佳答案
这对你有帮助
.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;
}
关于css - 如何在 Bootstrap 中创建视差封面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42831471/