ツールチップ ポップオーバー カルーセル bootstrap

<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>

<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>
#header {
    background-color: blue;
    height: 100px;
}
.row {
    background-color: green;
    height: 2000px;
    padding: 20px 0;
}

.main {
    background-color: pink;
    height: 1950px;
    margin: 10px 0;
    margin: 15px;
}

.sub-main {
    background-color: yellow;
    height: 300px;
    margin: 15px;
}

.form-group {
    margin: 10px 0;
}

</style>

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
    <div id="header" class="container">header</div>
    </div>
    <div class="container">
        <div class="row">
            <div class="main col-sm-8">

                <!-- ポップオーバー -->
                <p id="MyPopover"><a href="#" data-toggle="tooltip" title="discribe">tooltip</a>:<a href="#MyPopover" data-toggle="popover" title="discribe" data-content="and more">popover</a></p>

                <!-- カルーセル -->
                <div id="carousel-example-generic" class="carousel slide" data-ride="carousel" style="width:400px;">
                <!-- Indicators -->
                    <ol class="carousel-indicators">
                        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
                        <li data-target="#carousel-example-generic" data-slide-to="3"></li>
                    </ol>
                <!-- Wrapper for slides -->
                <div class="carousel-inner" style="height:300px;">
                    <div class="item active">
                    <img src="./img/01.jpg" alt="img1">
                        <div class="carousel-caption">
                            img1
                        </div>
                    </div>
                    <div class="item">
                    <img src="./img/02.jpg" alt="img2">
                        <div class="carousel-caption">
                            img2
                        </div>
                    </div>
                    <div class="item">
                    <img src="./img/03.jpg" alt="img3">
                        <div class="carousel-caption">
                            img3
                        </div>
                    </div>
                    <div class="item">
                    <img src="./img/04.jpg" alt="img4">
                        <div class="carousel-caption">
                            img4
                        </div>
                    </div>
                </div>
                <!-- Controls -->
                <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                    <span class="glyphicon glyphicon-chevron-left"></span>
                </a>
                <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                    <span class="glyphicon glyphicon-chevron-right"></span>
                </a>
                </div>

            </div><!-- col-sm-9 -->
            <div class="sub-main col-sm-3 hidden-xs">
            </div><!-- sub-main -->
        </div><!-- row -->
    </div><!-- container -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
    $(function() {
        $("[data-toggle=tooltip]").tooltip({
            placement: 'bottom'
        });
        $("[data-toggle=popover]").popover();
    });
</script>
</body>
</html>

f:id:hrt0kmt:20141019150709p:plain