mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-12 00:08:59 +01:00
more carouself example work
This commit is contained in:
parent
fe4a2d2c96
commit
2fd17aa6a8
107
carousel.html
107
carousel.html
@ -18,10 +18,17 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-bottom: -85px;
|
margin-bottom: -80px;
|
||||||
}
|
}
|
||||||
|
.navbar-wrapper .navbar-inner {
|
||||||
|
border: 0;
|
||||||
|
-webkit-box-shadow: 0 2px 10px rgba(0,0,0,.25);
|
||||||
|
-moz-box-shadow: 0 2px 10px rgba(0,0,0,.25);
|
||||||
|
box-shadow: 0 2px 10px rgba(0,0,0,.25);
|
||||||
|
}
|
||||||
|
|
||||||
.carousel-custom {
|
.carousel-custom {
|
||||||
margin-bottom: 40px;
|
margin-bottom: 60px;
|
||||||
}
|
}
|
||||||
.carousel-custom .container {
|
.carousel-custom .container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -29,19 +36,53 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.carousel-custom .carousel-control {
|
||||||
|
background-color: transparent;
|
||||||
|
border: 0;
|
||||||
|
font-size: 120px;
|
||||||
|
margin-top: 0;
|
||||||
|
text-shadow: 0 1px 1px rgba(0,0,0,.4);
|
||||||
|
}
|
||||||
|
|
||||||
.carousel-custom .carousel-caption {
|
.carousel-custom .carousel-caption {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
position: static;
|
position: static;
|
||||||
max-width: 50%;
|
max-width: 50%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin-bottom: 60px;
|
margin-bottom: 100px;
|
||||||
}
|
}
|
||||||
.carousel-custom .carousel-caption h1,
|
.carousel-custom .carousel-caption h1,
|
||||||
.carousel-custom .carousel-caption .lead {
|
.carousel-custom .carousel-caption .lead {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 1.25;
|
line-height: 1.25;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-shadow: 0 1px 3px rgba(0,0,0,.4);
|
text-shadow: 0 1px 1px rgba(0,0,0,.4);
|
||||||
|
}
|
||||||
|
.carousel-custom .carousel-caption .btn {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.featurette-divider {
|
||||||
|
margin: 60px 0;
|
||||||
|
}
|
||||||
|
.featurette {
|
||||||
|
padding: 75px 0;
|
||||||
|
}
|
||||||
|
.featurette-image {
|
||||||
|
margin-top: -75px;
|
||||||
|
}
|
||||||
|
.featurette-image.pull-left {
|
||||||
|
margin-right: 40px;
|
||||||
|
}
|
||||||
|
.featurette-image.pull-right {
|
||||||
|
margin-left: 40px;
|
||||||
|
}
|
||||||
|
.featurette-heading {
|
||||||
|
font-size: 50px;
|
||||||
|
font-weight: 300;
|
||||||
|
line-height: 1;
|
||||||
|
letter-spacing: -1px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
|
<link href="../assets/css/bootstrap-responsive.css" rel="stylesheet">
|
||||||
@ -98,29 +139,32 @@
|
|||||||
<div id="myCarousel" class="carousel slide carousel-custom">
|
<div id="myCarousel" class="carousel slide carousel-custom">
|
||||||
<div class="carousel-inner">
|
<div class="carousel-inner">
|
||||||
<div class="item active">
|
<div class="item active">
|
||||||
<img src="http://placehold.it/2000x700" alt="">
|
<img src="http://placehold.it/2000x800/555/545454&text=Example+image" alt="">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="carousel-caption">
|
<div class="carousel-caption">
|
||||||
<h1>First Thumbnail label</h1>
|
<h1>Example headline.</h1>
|
||||||
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
||||||
|
<a class="btn btn-large btn-primary" href="#">Sign up today</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<img src="http://placehold.it/2000x700" alt="">
|
<img src="http://placehold.it/2000x800/666/646464&text=Example+image+2" alt="">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="carousel-caption">
|
<div class="carousel-caption">
|
||||||
<h1>Second Thumbnail label</h1>
|
<h1>Another example headline.</h1>
|
||||||
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
||||||
|
<a class="btn btn-large btn-primary" href="#">Learn more</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<img src="http://placehold.it/2000x700" alt="">
|
<img src="http://placehold.it/2000x800/777/747474&text=Example+image+3" alt="">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="carousel-caption">
|
<div class="carousel-caption">
|
||||||
<h1>Third Thumbnail label</h1>
|
<h1>One more for good measure.</h1>
|
||||||
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
<p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
||||||
|
<a class="btn btn-large btn-primary" href="#">Browse gallery</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -136,29 +180,56 @@
|
|||||||
<!-- Example row of columns -->
|
<!-- Example row of columns -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<img src="http://placehold.it/370x200">
|
<img src="http://placehold.it/370x220">
|
||||||
<h2>Heading</h2>
|
<h2>Heading</h2>
|
||||||
<p>Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
|
<p>Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod. Nullam id dolor id nibh ultricies vehicula ut id elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
|
||||||
<p><a class="btn" href="#">View details »</a></p>
|
<p><a class="btn" href="#">View details »</a></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<img src="http://placehold.it/370x200">
|
<img src="http://placehold.it/370x220">
|
||||||
<h2>Heading</h2>
|
<h2>Heading</h2>
|
||||||
<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
|
<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
|
||||||
<p><a class="btn" href="#">View details »</a></p>
|
<p><a class="btn" href="#">View details »</a></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<img src="http://placehold.it/370x200">
|
<img src="http://placehold.it/370x220">
|
||||||
<h2>Heading</h2>
|
<h2>Heading</h2>
|
||||||
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Cras mattis consectetur purus sit amet fermentum.</p>
|
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
|
||||||
<p><a class="btn" href="#">View details »</a></p>
|
<p><a class="btn" href="#">View details »</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr class="featurette-divider">
|
||||||
|
|
||||||
|
<div class="featurette">
|
||||||
|
<img class="pull-right featurette-image" src="http://placehold.it/600x400">
|
||||||
|
<h2 class="featurette-heading">First featurette headling. <span class="muted">It'll blow your mind.</span></h2>
|
||||||
|
<p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr class="featurette-divider">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="featurette">
|
||||||
|
<img class="pull-left featurette-image" src="http://placehold.it/600x400">
|
||||||
|
<h2 class="featurette-heading">Oh yeah, it's that good. <span class="muted">See for yourself.</span></h2>
|
||||||
|
<p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr class="featurette-divider">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="featurette">
|
||||||
|
<img class="pull-right featurette-image" src="http://placehold.it/600x400">
|
||||||
|
<h2 class="featurette-heading">And lastly, this one. <span class="muted">Checkmate.</span></h2>
|
||||||
|
<p class="lead">Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Praesent commodo cursus magna, vel scelerisque nisl consectetur. Fusce dapibus, tellus ac cursus commodo.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr class="featurette-divider">
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p>© Company 2012</p>
|
<p class="pull-right"><a href="#">Back to top</a></p>
|
||||||
|
<p>© 2012 Company, Inc. · <a href="#">Privacy</a> · <a href="#">Terms</a></p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div> <!-- /container -->
|
</div> <!-- /container -->
|
||||||
|
Loading…
Reference in New Issue
Block a user