बूटस्ट्रैप 3 ट्यूटोरियल

बीएस होम बी एस आरंभ करें बीएस ग्रिड बेसिक बीएस टाइपोग्राफी बीएस टेबल्स बीएस छवियां बीएस जंबोट्रॉन बीएस वेल्स बीएस अलर्ट बीएस बटन बीएस बटन समूह बीएस ग्लिफ़कॉन्स बीएस बैज/लेबल बीएस प्रोग्रेस बार्स बीएस पेजिनेशन बीएस पेजर बीएस सूची समूह बीएस पैनल बीएस ड्रॉपडाउन बीएस पतन बीएस टैब्स/गोलियां बीएस नवबार बीएस फॉर्म बीएस इनपुट्स बीएस इनपुट 2 बीएस इनपुट साइजिंग बीएस मीडिया ऑब्जेक्ट्स बी एस हिंडोला बीएस मोडल बीएस टूलटिप बीएस पॉपओवर बीएस स्क्रॉलस्पाई बीएस एफिक्स बीएस फिल्टर

बूटस्ट्रैप ग्रिड

बीएस ग्रिड सिस्टम बीएस स्टैक्ड/क्षैतिज बीएस ग्रिड छोटा बीएस ग्रिड माध्यम बीएस ग्रिड लार्ज बीएस ग्रिड उदाहरण

बूटस्ट्रैप थीम्स

बीएस टेम्पलेट्स बीएस थीम "सिम्पली मी" बीएस थीम "कंपनी" बीएस थीम "बैंड"

बूटस्ट्रैप उदाहरण

बीएस उदाहरण बी एस प्रश्नोत्तरी बीएस व्यायाम बी एस प्रमाणपत्र

बूटस्ट्रैप सीएसएस रेफरी

सीएसएस सभी वर्ग सीएसएस टाइपोग्राफी सीएसएस बटन सीएसएस फॉर्म सीएसएस हेल्पर्स सीएसएस छवियां सीएसएस टेबल्स सीएसएस ड्रॉपडाउन सीएसएस नवस ग्लिफ़िकन्स

बूटस्ट्रैप जे एस रेफरी

जे एस एफिक्स जेएस अलर्ट जे एस बटन जे एस हिंडोला जे एस संक्षिप्त जेएस ड्रॉपडाउन जेएस मोडल जेएस पॉपओवर जेएस स्क्रॉलस्पी जेएस टैब जेएस टूलटिप


बूटस्ट्रैप जे एस हिंडोला


जेएस हिंडोला (carousel.js)

हिंडोला प्लगइन एक हिंडोला (स्लाइड शो) जैसे तत्वों के माध्यम से साइकिल चलाने के लिए एक घटक है।

हिंडोला के बारे में एक ट्यूटोरियल के लिए, हमारा बूटस्ट्रैप हिंडोला ट्यूटोरियल पढ़ें ।

नोट: इंटरनेट एक्सप्लोरर 9 और इससे पहले के संस्करण में हिंडोला ठीक से समर्थित नहीं हैं (क्योंकि वे स्लाइड प्रभाव को प्राप्त करने के लिए CSS3 के संक्रमण और एनिमेशन का उपयोग करते हैं)।


हिंडोला प्लगइन कक्षाएं

Class Description
.carousel Creates a carousel
.slide Adds a CSS transition and animation effect when sliding from one item to the next. Remove this class if you do not want this effect
.carousel-indicators Adds indicators for the carousel. These are the little dots at the bottom of each slide (which indicates how many slides there are in the carousel, and which slide the user are currently viewing)
.carousel-inner Adds slides to the carousel
.icon-next Unicode icon (arrow pointing right), used in carousels. This is often used instead of a glyphicon
.icon-prev Unicode icon (arrow pointing left), used in carousels. This is often used instead of a glyphicon
.item Specifies the content of each slide
.left carousel-control Adds a left button to the carousel, which allows the user to go back between the slides
.right carousel-control Adds a right button to the carousel, which allows the user to go forward between the slides
.carousel-caption Specifies a caption for the carousel

डेटा के माध्यम से-* विशेषताएँ

data-ride="carousel"विशेषता कैरोसेल को सक्रिय करती है

और विशेषताएँ निर्दिष्ट करती हैं कि किस स्लाइड पर जाना है data-slidedata-slide-to

data-slideविशेषता दो मान स्वीकार करती है: पिछला या अगला , जबकि data-slide-toसंख्याएं स्वीकार करते हैं।

उदाहरण

<!-- Carousel -->
<div id="myCarousel" class="carousel slide" data-ride="carousel">

<!-- Carousel Indicators -->
<li data-target="#myCarousel" data-slide-to="1"></li>

<!-- Carousel Controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">


जावास्क्रिप्ट के माध्यम से

इसके साथ मैन्युअल रूप से सक्षम करें:

उदाहरण

// Activate Carousel
$("#myCarousel").carousel();

// Enable Carousel Indicators
$(".item").click(function(){
  $("#myCarousel").carousel(1);
});

// Enable Carousel Controls
$(".left").click(function(){
  $("#myCarousel").carousel("prev");
});

हिंडोला विकल्प

विकल्प डेटा विशेषताओं या जावास्क्रिप्ट के माध्यम से पारित किए जा सकते हैं। डेटा विशेषताओं के लिए, विकल्प नाम को डेटा में जोड़ें- जैसा कि डेटा-अंतराल = "" में है।

Name Type Default Description Try it
interval number, or the boolean false 5000 Specifies the delay (in milliseconds) between each slide.

Note: Set interval to false to stop the items from automatically sliding
pause string, or the boolean false "hover" Pauses the carousel from going through the next slide when the mouse pointer enters the carousel, and resumes the sliding when the mouse pointer leaves the carousel

Note: Set pause to false to stop the ability to pause on hover
wrap boolean true Specifies whether the carousel should go through all slides continuously, or stop at the last slide

  • true - cycle continuously
  • false - stop at the last item

हिंडोला तरीके

निम्न तालिका सभी उपलब्ध हिंडोला विधियों को सूचीबद्ध करती है।

Method Description Try it
.carousel(options) Activates the carousel with an option. See options above for valid values
.carousel("cycle") Goes through the carousel items from left to right
.carousel("pause") Stops the carousel from going through items
.carousel(number) Goes to a specified item (zero-based: first item is 0, second item is 1, etc..)
.carousel("prev") Goes to the previous item
.carousel("next") Goes to the next item

हिंडोला इवेंट

निम्न तालिका सभी उपलब्ध कैरोसेल ईवेंट को सूचीबद्ध करती है।

Event Description Try it
slide.bs.carousel Occurs when the carousel is about to slide from one item to another
slid.bs.carousel Occurs when the carousel has finished sliding from one item to another

और ज्यादा उदाहरण

स्लाइड के कैप्शन

प्रत्येक स्लाइड के लिए कैप्शन बनाने के लिए <div class="carousel-caption">प्रत्येक के भीतर जोड़ें :<div class="item">

उदाहरण


<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>
    <li data-target="#myCarousel" data-slide-to="3"></li>
  </ol>

  <!-- Wrapper for slides -->
  <div class="carousel-inner" role="listbox">
    <div class="item active">
      <img src="img_chania.jpg" alt="Chania">
      <div class="carousel-caption">
        <h3>Chania</h3>
        <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
      </div>
    </div>

    <div class="item">
      <img src="img_chania2.jpg" alt="Chania">
      <div class="carousel-caption">
        <h3>Chania</h3>
        <p>The atmosphere in Chania has a touch of Florence and Venice.</p>
      </div>
    </div>

    <div class="item">
      <img src="img_flower.jpg" alt="Flower">
      <div class="carousel-caption">
        <h3>Flowers</h3>
        <p>Beautiful flowers in Kolymbari, Crete.</p>
      </div>
    </div>

    <div class="item">
      <img src="img_flower2.jpg" alt="Flower">
      <div class="carousel-caption">
        <h3>Flowers</h3>
        <p>Beautiful flowers in Kolymbari, Crete.</p>
      </div>
    </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>