The use of Bootstrap Carousel rotation chart

Source: Internet
Author: User
Tags bootstrap carousel

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">&lsaquo;</a>            <aclass= "Right Carousel-control"href= "#myCarousel"Data-slide= "Next">&rsaquo;</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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.