Movatterモバイル変換


[0]ホーム

URL:


Menu
×
See More 
Sign In
+1 Get Certified Upgrade Teachers Spaces Bootcamps Get Certified Upgrade Teachers Spaces Bootcamps
   ❮     
     ❯   

BootstrapCSS Buttons Reference


Button Colors


Button Sizes


Active/Disabled Buttons


Block-level Button


Button Groups


Button Classes

The classes below can be used to style any <a>, <button>, or <input> element:

ClassDescriptionExample
.btnAdds basic styling to any buttonTry it
.btn-defaultIndicates a default/standard buttonTry it
.btn-primaryProvides extra visual weight and identifies the primary action in a set of buttonsTry it
.btn-successIndicates a successful or positive actionTry it
.btn-infoContextual button for informational alert messagesTry it
.btn-warningIndicates caution should be taken with this actionTry it
.btn-dangerIndicates a dangerous or potentially negative actionTry it
.btn-linkMakes a button look like a link (will still have button behavior)Try it
.btn-lgMakes a large buttonTry it
.btn-smMakes a small buttonTry it
.btn-xsMakes an extra small buttonTry it
.btn-blockMakes a block-level button (spans the full width of the parent element)Try it
.activeMakes the button appear pressedTry it
.disabledMakes the button disabledTry it
.navbar-btnVertically aligns a button inside a navbarTry it


Button Group Classes

The classes below can be used to style any <a>, <button>, or <input> element:

ClassDescriptionExample
.btn-groupGroups buttons together on a single lineTry it
.btn-group-justifiedMakes a group of buttons span the entire width of the screenTry it
.btn-group-lgLarge button group (makes all buttons in a button group larger - increased font-size and padding)Try it
.btn-group-smSmall button group (makes all buttons in a button group smaller)Try it
.btn-group-xsExtra small button group (makes all buttons in a button group extra small)Try it
.btn-group-verticalMakes a button group appear vertically stackedTry it


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted ourterms of use,cookies andprivacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved.W3Schools is Powered by W3.CSS.

-->
[8]ページ先頭

©2009-2026 Movatter.jp