【发布时间】:2015-05-09 00:28:47
【问题描述】:
帮我把图片放在背景而不是背景颜色 我已经尝试过 Bootstrap 的“img-responsive img-center”html 标签,但它没有出现在文本后面,而且 CSS“background-image: url(”);”根本不起作用
这里是 CSS:
header {
text-align: center;
color: #fff;
background-color: #31353D;
}
header .container {
padding-top: 74px;
padding-bottom: 263px;
}
header .intro {
font-family: 'Roboto', sans-serif;
font-size: 2em;
text-transform: uppercase;
font-weight: 900;
letter-spacing: 1px;
}
header .subintro {
font-family: 'Roboto', sans-serif;
font-size: 0.8em;
text-transform: uppercase;
font-weight: 500;
}
Here is HTML
<header>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="intro-text">
<span class="intro" id="mainIntro">We will lead the way</span></br>
<span class="subintro" id="secondIntro">We provide not better but best in the world</span></br>
<button type="button" class="btn btn-default" id="introBtn">START YOUR JOURNEY</button>
</div>
</div>
</div>
</div>
</div>
</header>
【问题讨论】:
-
您的 HTML 或 CSS 中任何地方都没有图像。
-
我试过他们不工作所以我删除然后张贴在那里询问正确的解决方案
标签: html css twitter-bootstrap