Jump to content
  • 0

Carousel in Twitter Bootstrap


ShootingStar
 Share

  

7 members have voted

You do not have permission to vote in this poll, or see the poll results. Please sign in or register to vote in this poll.

Question

Здравствуйте, использывал карусель от бутстрепа, нравилось то что можно было вставлять картинки большего формата и карусель автоматом уменьшала их.

bootstrap 2.0.1:

s_1331949120_3350364_f833364f7c.jpeg

bootstrap 2.0.2:

s_1331949275_4615176_db6c9d5645.jpeg

Не могу найти и за чего карусель увеличилась. Если знаете подобную карусель которая умеет уменьшать картинку подскажите пожалуйста.

код страници где вставлена карусель:


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<!--[if IE]>
<script src="js/html5.js"></script><![endif]-->
<title>Портфолио HTML верстальщика</title>
<meta name="keywords" content=""/>
<meta name="description" content=""/>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/script.js"></script>
<link rel="stylesheet" href="css/bootstrap.css"/>
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>

</head>

<body>
<header>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a href="/" class="brand">Portfolio</a>

<div class="nav-collapse">
<ul class="nav tabs">
<li class="active">
<a data-toggle="tab" href="#home">
<i class="icon-home icon-white"></i>
Мои работы
</a>
</li>
<li>
<a data-toggle="tab" href="#resume">
<i class="icon-user icon-white">
</i>
Резюме
</a>
</li>
<li>
<a data-toggle="tab" href="#contact">
<i class="icon-envelope icon-white">
</i>
Контакты
</a>
</li>

</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
</div>
</header>
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="tab-content">
<div id="home" class="tab-pane active">
<div class="hero-unit">
<div id="myCarousel" class="carousel">
<!-- Carousel items -->
<div class="carousel-inner">
<div class="active item"><a href="les2/index.html"><img src="img/example11.jpg"
alt=""></a></div>
<div class="item">
<a href="les2/index.html"><img src="img/example22.jpg" alt=""></a>
</div>

</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a>
</div>


</div>


</div>
<!-- home -->
<div id="resume" class="tab-pane">

</div>
<div id="contact" class="tab-pane">

</div>
</div>
<hr/>

<footer>
</footer>
</div>


</body>
</html>

Changelog v 2.0.2

CSS файл версии 2.0.1

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy