बूटस्ट्रैप 4 जेएस बटन
बटन सीएसएस क्लासेस
बटन के बारे में एक ट्यूटोरियल के लिए, हमारा बूटस्ट्रैप बटन ट्यूटोरियल पढ़ें ।
नीचे दी गई कक्षाओं का उपयोग किसी भी <a>, <button>, या <input> तत्व को स्टाइल करने के लिए किया जा सकता है:
Class | Description | Example |
---|---|---|
.btn |
Adds basic styling to any button | |
.btn-block |
Makes a block-level button (spans the full width of the parent element) | |
.btn-danger |
Indicates a dangerous or potentially negative action | |
.btn-dark |
Dark grey button | |
.btn-default |
Indicates a default/standard button | |
.btn-info |
Contextual button for informational alert messages | |
.btn-lg |
Makes a large button | |
.btn-light |
Light grey button | |
.btn-link |
Makes a button look like a link (will still have button behavior) | |
.btn-outline-* |
Creates an outlined/bordered button. Use any of the contextual classes as * (btn-outline-primary, btn-outline-success, etc) | |
.btn-primary |
Provides extra visual weight and identifies the primary action in a set of buttons | |
.btn-sm |
Makes a small button | |
.btn-success |
Indicates a successful or positive action | |
.btn-secondary |
Indicates a "less" important action | |
.btn-toolbar |
Combine sets of button groups into button toolbars for more complex components | |
.btn-warning |
Indicates caution should be taken with this action | |
.active |
Makes the button appear pressed | |
.disabled |
Makes the button disabled |
जावास्क्रिप्ट के माध्यम से
इसके साथ मैन्युअल रूप से सक्षम करें:
$('.btn').button();
बटन विकल्प
None |
बटन के तरीके
निम्न तालिका सभी उपलब्ध बटन विधियों को सूचीबद्ध करती है।
नोट: विधियों को डेटा विशेषताओं के माध्यम से भी पारित किया जा सकता है; डेटा-टॉगल या डेटा-निपटान के रूप में विधि नाम को डेटा में जोड़ें।
Method | Description | Try it |
---|---|---|
.button("toggle") | Makes the button look pressed | |
.button("dispose") | Destroys an element's button |