我正在使用bootstrap3
进行页面设计。我正在添加一个横幅(滑块),我正在添加一个包含一些内容的框。代码如下
<div class="row">
<section id="slider">
<ul class="rslides" id="modest-slider">
<li class="slider-wrapper">
<div class="slider-img-container">
<img src="http://placehold.it/350x150&text=slider1" alt="slider1" />
</div>
<div class="slider-caption container">
<div class="col-md-7" style="border-left-width: 4px; top: auto; bottom:100%; max-bottom: 126px; width:100%; max-width: 600px; background: rgba(255, 255, 255, 0.6);height:100%; max-height:130px;">
<h1>Exclusively New Concept!</h1>
<p class="slider-description2">
Lorem ipsum sample Lorem ipsum sample Lorem ipsum sample Lorem ipsum sample Lorem ipsum sample...
</p>
</div>
</div>
<!-- /.slider-caption -->
</li>
<!-- /.slider-wrapper -->
</ui>
</section>
在浏览器全屏显示它完美运行。当我调整浏览器大小时,它会在我的标题中合并。我怎么能避免这个?如何使各种尺寸的盒子内容可见?
请参阅图片
帮助将不胜感激!!
答案 0 :(得分:1)
我不确定标题栏,因为你必须使用自己的自定义CSS。根据您提供的HTML,它应该像下面一样修复。
<div class="row">
<div class="col-md-12">
<section id="slider">
<ul class="rslides" id="modest-slider">
<li class="slider-wrapper">
<div class="slider-img-container">
<img src="http://placehold.it/350x150&text=slider1" alt="slider1" class="img-responsive" />
</div>
<div class="slider-caption container">
<div class="col-md-7" style="border-left-width: 4px; top: auto; bottom:100%; max-bottom: 126px; width:100%; max-width: 600px; background: rgba(255, 255, 255, 0.6);height:100%; max-height:130px;">
<h1>Exclusively New Concept!</h1>
<p class="slider-description2">Lorem ipsum sample Lorem ipsum sample Lorem ipsum sample Lorem ipsum sample Lorem ipsum sample...</p>
</div>
</div>
<!-- /.slider-caption -->
</li>
<!-- /.slider-wrapper -->
</ul>
</section>
</div>
</div>