2014-02-14 3 views
2

저는 부트 스트랩 3을 처음 사용하고 웹 사이트의 회전 장치에서 작업하고 있습니다. "페이드"효과가있는 회전식 캐 러셀을 만들고 회전식 아래에 4 개의 버튼을 만들어 이미지 사이의 전환을 클릭하면됩니다. 부트 스트랩 API에서 제공하는 기본 컨트롤 (왼쪽/오른쪽 화살표 및 표시기)을 사용하고 싶지 않습니다. https://moodle.org/부트 스트랩 3 버튼이있는 회전 목마

여기 내 코드는 지금까지입니다 - -

<!DOCTYPE html> 
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<meta charset="utf-8"> 
<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
<meta name="viewport" content="width=device-width, initial-scale=1"> 
<meta name="description" content=""> 
<meta name="author" content=""> 

<title>Carousel Template for Bootstrap</title> 

<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet"> 

<link href="carousel.css" rel="stylesheet"> 



</head> 
<body style="padding-left: 50px;padding-right: 50px;"> 
<div id="myCarousel" data-interval="false" class="carousel slide" data-ride="carousel" >  

<div class="carousel-inner"> 
<div class="item active"> 
     <img alt="First slide" src="1.jpg"> 
     <div class="container"> 
     <div class="carousel-caption"> 
      <h1>Example headline.</h1> 
     </div> 
     </div> 
    </div> 
    <div class="item"> 
     <img alt="Second slide" src="1.jpg"> 
     <div class="container"> 
     <div class="carousel-caption"> 
      <h1>Another example headline.</h1> 
     </div> 
     </div> 
    </div> 
    <div class="item"> 
     <img alt="Third slide" src="1.jpg"> 
     <div class="container"> 
     <div class="carousel-caption"> 
      <h1>One more for good measure.</h1> 
     </div> 
     </div> 
    </div> 
    </div> 
    <a class="left carousel-control" href="#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a> 
    <a class="right carousel-control" href="#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a> 

</div><!-- /.carousel --> 

<div align="center"> 
    <p>Carousel with auto-slide disabled!</p> 
</div> 



    <!-- FOOTER --> 
    <footer> 
    <p class="pull-right"><a href="http://getbootstrap.com/examples/carousel/#">Back to top</a></p> 
    <p>© 2014 Company, Inc. · <a href="http://getbootstrap.com/examples/carousel/#">Privacy</a> · <a href="http://getbootstrap.com/examples/carousel/#">Terms</a></p> 
    </footer> 

</div><!-- /.container --> 




<script src="./Carousel Template for Bootstrap_files/jquery.min.js"></script> 
<script src="./Carousel Template for Bootstrap_files/bootstrap.min.js"></script> 
<script src="./Carousel Template for Bootstrap_files/docs.min.js"></script> 



</body></html> 
+0

더 많은 컨트롤이 필요한 경우 다른 슬라이더로 이동합니다. 부트 스트랩 회전 장치는 꽤 제한된 것처럼 보입니다. – Tomanow

+1

당신의 질문은 정확히 무엇입니까? – jww

+0

당신은 이것에 흥미가있을 것입니다 : http://wowslider.com/html5-image-slider-box-stack-v-demo.html – V31

답변

2
당신은 부트 스트랩이 뭔가를 시도 할 수 있습니다

..

http://bootply.com/113737

나는 이런 식으로 뭔가를 만들려면 data-targetdata-slide-to을 사용하여 특정 슬라이드.

+0

좋은 예 ....하지만 아래의 버튼들은 화면 크기가 적절하게 확장되지 않습니다 이 문제를 해결하기 위해 무엇을 할 수 있습니까? 화면 크기에 관계없이 버튼이 회전식 컨베이어 바로 아래에 표시되도록 ..... – user3301160

관련 문제