我對前端非常陌生,我使用bootstrap。我似乎在定製它時遇到了問題。我面臨的問題是,圖片不在左側&右側控制器內。我如何定製圖像和控制器,使其適合一個框架?Bootstrap Carousel Customization
p/s這是我第一次使用StackOverflow。
<div class="container">
<div class="row" >
<div class = "col-xs-12" >
<div id="myCarousel" class="carousel slide" style="width: 486px; height:324px" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<%= image_tag("chart_1st_img.png", :class =>"img-responsive", :alt => "Chart 1", :width => "486", :height => "324")%>
<div class="carousel-caption">
<br>
<br>
<h3>Pie Charts</h3>
<p> Beatiful designed data. </p>
</div>
</div>
<div class="item">
<%= image_tag("chart_2nd_img.png", :class =>"img-responsive", :alt => "Chart 2")%>
<br>
<br>
<div class="carousel-caption">
<h3>Customer Hapiness</h3>
<p>Overall Report</p>
</div>
</div>
<div class="item">
<%= image_tag("charts_3rd_img.png", :class =>"img-responsive", :alt => "Chart 3")%>
<div class="carousel-caption">
<br>
<br>
<h3> Various Graphics </h3>
<p> i dont know what to describe</p>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" 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="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
Here是我的小提琴。
歡迎來到SO!現在,你爲什麼提到'ruby-on-rails'標籤?並請張貼小提琴(jsfiddle.net)鏈接,以便SO用戶可以幫助您更多! –
好的,謝謝你的信息:) – Purry