BOOTSTRAP PART 5 IN HINDI
Bootstrap carousel Example: add captions to slides :-
यदि आप स्लाइड्स में कैप्शन जोड़ना चाहते हैं, तो आपको प्रत्येक <div class = "item"> के अंदर <div class = "carousel-caption"> जोड़ना होगा।
<!DOCTYPE html>
<html lang="en">
<head>
<title>Job</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"/>
</head>
<style>
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
width: 80%;
margin: auto;
}
</style>
<body>
<div class="container">
<h1>Carousel Example</h1>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="images/jokes1.jpg" alt="jokes 1" >
<h3>Santa-Banta</h3>
<p>Read Santa-Banta jokes at javaTpoint.</p>
</div>
<div class="item">
<img src="images/jokes2.jpg" alt="jokes 2" >
<h3>Santa-Banta</h3>
<p>Read Santa-Banta jokes at javaTpoint.</p>
</div>
<div class="item">
<img src="images/jokes3.jpg" alt="jokes 3" >
<h3>Santa-Banta</h3>
<p>Read Santa-Banta jokes at javaTpoint.</p>
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div><!-- corousel end -->
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</body>
</html>
Bootstrap Collapse
जब आप छिपाना चाहते हैं और बड़ी मात्रा में सामग्री दिखाना चाहते हैं तो बूटस्ट्रैप पतन का उपयोग किया जाता है
संकुचित तत्व को निर्दिष्ट करने के लिए "।
Bootstrap Collapse Example:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h2>Basic Collapse Example</h2>
<button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">Simple collapsible</button>
<div id="demo" class="collapse">
Tigers and Lions are the most ferocious animals on the earth. They belong to the felidae(cat) family.
They are both from the four big cats. These four big cats are Lion, Tiger, Leopard, and Jaguar.
These animals reside on the top of the food chain and don't have any predators.
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
</html>
Comments
Post a Comment
If you have any doubts. please let me know.