我有一个来自Bootstrap的Jumbotron,我想把它的背景变暗,但不影响输入在其中的文本。有没有办法实现这样的效果?
我已经到处找过,但我找到的所有解决方案都会使文本变暗。
目前为止,我的做法是:
.mainJumbotron {
margin: 0px;
height: 250px;
text-align: center;
background-image: url(http://i.imgur.com/qj2w73W.png);
background-repeat: no-repeat;
background-size: cover;
}
<div class="jumbotron mainJumbotron">
<h1 style="">Hakkımızda</h1>
</div>