बूटस्ट्रैप सीएसएस टेबल्स संदर्भ
<तालिका> कक्षाएं
किसी भी तालिका को स्टाइल करने के लिए नीचे दी गई कक्षाओं का उपयोग करें:
Class | Description | Example |
---|---|---|
.table | Adds basic styling (light padding and only horizontal dividers) to any <table> | |
.table-striped | Adds zebra-striping to any table row within <tbody> (not available in IE8) | |
.table-bordered | Adds border on all sides of the table and cells | |
.table-hover | Enables a hover state on table rows within a <tbody> | |
.table-condensed | Makes table more compact by cutting cell padding in half | |
Combining all the table classes |
<tr>, <th> और <td> कक्षाएं
तालिका पंक्तियों या कक्षों को रंगने के लिए नीचे दी गई कक्षाओं का उपयोग करें:
Class | Description | Example |
---|---|---|
.active | Applies the hover color (light-grey) to a particular row or cell | |
.success | Indicates a successful or positive action | |
.info | Indicates a neutral informative change or action | |
.warning | Indicates a warning that might need attention | |
.danger | Indicates a dangerous or potentially negative action |
उत्तरदायी टेबल्स
टेबल-रेस्पॉन्सिव क्लास एक रिस्पॉन्सिव टेबल बनाता है। फिर तालिका छोटे उपकरणों (768px से कम) पर क्षैतिज रूप से स्क्रॉल करेगी। 768px से अधिक चौड़ी किसी भी चीज़ को देखने पर, कोई अंतर नहीं पड़ता:
उदाहरण
<div class="table-responsive">
<table class="table">
...
</table>
</div>