第一次引导用户在这里,我正在帮助一些更有经验的用户可以回答我有几个问题。对齐内部div中的内容并更改背景颜色
参考网站:http://ps11.pstcc.edu/~c2230a11/lab4/jraudi
首先,我已经建立在我的导航栏和转盘位于一个巨大的容器。在我的carousal下,我创建了一个4 x 4 x 4行的额外容器,等于所需的12.我将这些行中的图片居中,不幸的是,当我输入文本时,我无法在图片边界内对齐文本。我尝试过使用,但这并不如我想要的那样好。所以,我想我会问他们是否是一种替代方法。
<div class="row">
<div class="col-lg-4">
<img class="center-block" src="images/newveh.png" alt="Generic placeholder image" width="280" height="175">
<h3><b>New Vehicles</b></h3>
<p>Jr Audi has the latest Audi models available.</p>
<p><a class="btn btn-default" href="#" role="button">» View New Inventory</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-lg-4">
<img class="center-block" src="images/certpreowned.png" alt="Generic placeholder image" width="280" height="175">
<h3><b>Certified Pre-Owned Vehicles</b></h3>
<p>Audi Certified Pre-Owned inspection is the industry's most rigorous.</p>
<p><a class="btn btn-default" href="#" role="button">» View Certified pre-owned Vehicles</a>
»</p>
</div><!-- /.col-lg-4 -->
<div class="col-lg-4">
<img class="center-block" src="images/specialoffers.png" alt="Generic placeholder image" width="280" height="175">
<h3><b>Special Offers</h3></b>
<p>If you are considering a new Audi vehicle, now is the perfect opportunity.</p>
<p><a class="btn btn-default" href="#" role="button">» View Incentives</a></p>
</div><!-- /.col-lg-4 -->
</div><!-- /.row -->
另外,关于使用背景颜色。我想改变我的主容器外的背景色,所以一切都在最左或最右边。我试图改变背景颜色,并设法改变一切。如何仅更改主容器外部的背景颜色?
谢谢
你先生是正确的,谢谢非常多 –
由于您使用引导程序,只是提醒您检查它是如何作为响应式解决方案的。 – FamiliarPie