【发布时间】:2016-07-23 05:12:41
【问题描述】:
我有一个来自 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>
【问题讨论】:
-
你去。我已经添加了代码。
标签: html css twitter-bootstrap