以下css添加图像:
.pager {
background: url(../images/slide1.jpg) center center repeat-x;
padding: 50px 0 50px 0;
}
html 看起来像这样:
<div class="pager">
<div class="wrapper">
<div class="pager-title l">
<h1>The Burrow</h1>
<p>Tutorials, lessons, resources and a whole lot more!</p>
</div>
<div class="test-text r">
<h2>By far the best Aussie host I've ever used! No lag at all!<img src="images/bulate2.png" alt="" style="position:relative; margin-left:10px; margin-top:-15px;"></h2>
<p>— Jeremy, <a href="#">EmuCraft Australia</a></p>
</div>
<div class="c"></div>
</div>
</div>
您可能希望将寻呼机 div 放入包装器 div 中,如下所示:
<div class="wrapper">
<div class="pager">
<div class="pager-title l">
<h1>The Burrow</h1>
<p>Tutorials, lessons, resources and a whole lot more!</p>
</div>
<div class="test-text r">
<h2>By far the best Aussie host I've ever used! No lag at all!<img src="images/bulate2.png" alt="" style="position:relative; margin-left:10px; margin-top:-15px;"></h2>
<p>— Jeremy, <a href="#">EmuCraft Australia</a></p>
</div>
<div class="c"></div>
</div>
</div>
或者类似的东西,但是你必须对页脚做同样的事情。