Bootstrap图像堵塞了

时间:2016-03-25 17:51:58

标签: html css twitter-bootstrap twitter-bootstrap-2

之前我的标签宽度以像素为单位。我将它移动到百分比,以便适合每个屏幕。现在滑动引导图像已经模糊。我在这里附上了屏幕截图。滑动箭头的图像也已经脱位。

img

ul 
{
width:100%;
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}

li 
{
white-space: nowrap;
width: 20%;
float: left;
}

a:link, a:visited 
{
display: block;
width:100%;
font-weight: bold;
color: #FFFFFF;
background-color: #98bf21;
text-align: center;
padding: 4px;
text-decoration: none;
text-transform: uppercase;
}

.carousel-inner > .item > img,
.carousel-inner > .item > a > img
{
  width: 50%;
  margin: auto;
}

这是我的引导代码。

<div class="container">
<div id="boots" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
  <li data-target="#boots" data-slide-to="0" class="active"></li>
  <li data-target="#boots" data-slide-to="1"></li>
  <li data-target="#boots" data-slide-to="2"></li>
</ol>


<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
  <div class="item active">
    <img border="0" src="images/boo1.jpg" alt="sale1" width="300"    height="350">
  </div>

  <div class="item">
    <img border="0"  src="images/boo.jpg" alt="sale2" width="300" height="350">
  </div>

  <div class="item">
    <img border="0" src="images/boo3.jpg" alt="sale3" width="300" height="350">
  </div>
</div>

<!-- Left and right controls -->
<a class="left carousel-control" href="#boots" role="button" data-slide="prev">
  <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
  <span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#boots" role="button" data-slide="next">
  <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
  <span class="sr-only">Next</span>
</a>
 </div>
 </div>

</body>

0 个答案:

没有答案