Demo Effect:
Code:
<!DOCTYPE HTML><HTML> <Head> <MetaCharSet= "Utf-8"> <Linkrel= "stylesheet"href= "Http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <style>Body{padding:10px;margin:10px; } </style> </Head> <Body> <DivID= "Mycarousel"class= "Carousel Slide"> <olclass= "Carousel-indicators"> <LiData-target= "#myCarousel"data-slide-to= "0"class= "Active"></Li> <LiData-target= "#myCarousel"data-slide-to= "1"></Li> <LiData-target= "#myCarousel"data-slide-to= "2"></Li> </ol> <Divclass= "Carousel-inner"> <Divclass= "Item Active"> <imgsrc= "Http://images3.c-ctrip.com/rk/201407/ll580x145.jpg"alt=""> <Divclass= "Carousel-caption"> <h4>Title One</h4> <P>A brief introduction to the picture</P> </Div> </Div> <Divclass= "Item"> <imgsrc= "Http://images3.c-ctrip.com/dj/201408/zj/zj_580145.jpg"alt=""> <Divclass= "Carousel-caption"> <h4>Title two/h4><P>Picture Two content Introduction</P> </Div> </Div> <Divclass= "Item"> <imgsrc= "Http://images3.c-ctrip.com/rk/201403/yfdd580145a.png"alt=""> <Divclass= "Carousel-caption"> <h4>Title III</h4> <P>Picture Three content Introduction</P> </Div> </Div> </Div> <aclass= "Left Carousel-control"href= "#myCarousel"Data-slide= "Prev">‹</a> <aclass= "Right Carousel-control"href= "#myCarousel"Data-slide= "Next">›</a> </Div> <Script> $('. Carousel'). Carousel ()</Script> <Scripttype= "Text/javascript"src= "Js/jquery.min.js" ></Script> <Scripttype= "Text/javascript"src= "Js/bootstrap.min.js" ></Script> <!--<script src= "Http://libs.baidu.com/jquery/1.9.0/jquery.js" ></script> - <!--<script src= "Http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" ></script> - </Body></HTML>
View Code
http://www.imooc.com/code/5395
The use of Bootstrap Carousel rotation chart