Search

Buttons

Buttons

๋ฒ„ํŠผ ์š”์†Œ๋ฅผ ๋””์ž์ธํ•ฉ๋‹ˆ๋‹ค.

๊ธฐ๋ณธ ํด๋ž˜์Šค

๋ฒ„ํŠผ ๋””์ž์ธ์„ ์ ์šฉํ•˜๋Š” ๊ธฐ๋ณธ ํด๋ž˜์Šค ์†์„ฑ๊ฐ’์€ btn ์ž…๋‹ˆ๋‹ค.
class="btn"
HTML
๋ณต์‚ฌ
๋ฒ„ํŠผ ์ข…๋ฅ˜
ํด๋ž˜์Šค
์„ค๋ช…
๊ธฐ๋ณธ ๋ฒ„ํŠผ
btn btn-primary
ํŒŒ๋ž€์ƒ‰ ๊ธฐ๋ณธ ๋ฒ„ํŠผ
btn btn-secondary
ํšŒ์ƒ‰ ๊ธฐ๋ณธ ๋ฒ„ํŠผ
btn btn-success
์ดˆ๋ก์ƒ‰ ๊ธฐ๋ณธ ๋ฒ„ํŠผ
btn btn-danger
๋นจ๊ฐ„์ƒ‰ ๊ธฐ๋ณธ ๋ฒ„ํŠผ
btn btn-warning
๋…ธ๋ž€์ƒ‰ ๊ธฐ๋ณธ ๋ฒ„ํŠผ
btn btn-info
ํ•˜๋Š˜์ƒ‰ ๊ธฐ๋ณธ ๋ฒ„ํŠผ
btn btn-light
ํฐ์ƒ‰ ๊ธฐ๋ณธ ๋ฒ„ํŠผ
btn btn-dark
๊ฒ€์€์ƒ‰ ๊ธฐ๋ณธ ๋ฒ„ํŠผ
btn btn-link
๋งํฌ ์Šคํƒ€์ผ ๋ฒ„ํŠผ
ํฐ ๋ฒ„ํŠผ
btn btn-primary btn-lg
ํŒŒ๋ž€์ƒ‰ ํฐ ๋ฒ„ํŠผ
btn btn-secondary btn-lg
ํšŒ์ƒ‰ ํฐ ๋ฒ„ํŠผ
btn btn-success btn-lg
์ดˆ๋ก์ƒ‰ ํฐ ๋ฒ„ํŠผ
btn btn-danger btn-lg
๋นจ๊ฐ„์ƒ‰ ํฐ ๋ฒ„ํŠผ
btn btn-warning btn-lg
๋…ธ๋ž€์ƒ‰ ํฐ ๋ฒ„ํŠผ
btn btn-info btn-lg
ํ•˜๋Š˜์ƒ‰ ํฐ ๋ฒ„ํŠผ
btn btn-light btn-lg
ํฐ์ƒ‰ ํฐ ๋ฒ„ํŠผ
btn btn-dark btn-lg
๊ฒ€์€์ƒ‰ ํฐ ๋ฒ„ํŠผ
btn btn-link btn-lg
๋งํฌ ์Šคํƒ€์ผ ํฐ ๋ฒ„ํŠผ
์•„์›ƒ๋ผ์ธ ๋ฒ„ํŠผ
btn btn-outline-primary
ํŒŒ๋ž€์ƒ‰ ํ…Œ๋‘๋ฆฌ ๋ฒ„ํŠผ
btn btn-outline-secondary
ํšŒ์ƒ‰ ํ…Œ๋‘๋ฆฌ ๋ฒ„ํŠผ
btn btn-outline-success
์ดˆ๋ก์ƒ‰ ํ…Œ๋‘๋ฆฌ ๋ฒ„ํŠผ
btn btn-outline-danger
๋นจ๊ฐ„์ƒ‰ ํ…Œ๋‘๋ฆฌ ๋ฒ„ํŠผ
btn btn-outline-warning
๋…ธ๋ž€์ƒ‰ ํ…Œ๋‘๋ฆฌ ๋ฒ„ํŠผ
btn btn-outline-info
ํ•˜๋Š˜์ƒ‰ ํ…Œ๋‘๋ฆฌ ๋ฒ„ํŠผ
btn btn-outline-light
ํฐ์ƒ‰ ํ…Œ๋‘๋ฆฌ ๋ฒ„ํŠผ
btn btn-outline-dark
๊ฒ€์€์ƒ‰ ํ…Œ๋‘๋ฆฌ ๋ฒ„ํŠผ

์˜ˆ์‹œ ์ฝ”๋“œ

<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Bootstrap 5 ๋ฒ„ํŠผ ์˜ˆ์‹œ</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> </head> <body> <div class="container mt-5"> <!-- ๊ธฐ๋ณธ ๋ฒ„ํŠผ --> <div class="my-5"> <button type="button" class="btn btn-primary">Primary</button> <button type="button" class="btn btn-secondary">Secondary</button> <button type="button" class="btn btn-success">Success</button> <button type="button" class="btn btn-danger">Danger</button> <button type="button" class="btn btn-warning">Warning</button> <button type="button" class="btn btn-info">Info</button> <button type="button" class="btn btn-light">Light</button> <button type="button" class="btn btn-dark">Dark</button> <button type="button" class="btn btn-link">Link</button> </div> <!-- ํฐ ๋ฒ„ํŠผ --> <div class="my-5"> <button type="button" class="btn btn-primary btn-lg">Primary Large</button> <button type="button" class="btn btn-secondary btn-lg">Secondary Large</button> <button type="button" class="btn btn-success btn-lg">Success Large</button> <button type="button" class="btn btn-danger btn-lg">Danger Large</button> <button type="button" class="btn btn-warning btn-lg">Warning Large</button> <button type="button" class="btn btn-info btn-lg">Info Large</button> <button type="button" class="btn btn-light btn-lg">Light Large</button> <button type="button" class="btn btn-dark btn-lg">Dark Large</button> <button type="button" class="btn btn-link btn-lg">Link Large</button> </div> <!-- ์•„์›ƒ๋ผ์ธ ๋ฒ„ํŠผ --> <div class="my-5"> <button type="button" class="btn btn-outline-primary">Outline Primary</button> <button type="button" class="btn btn-outline-secondary">Outline Secondary</button> <button type="button" class="btn btn-outline-success">Outline Success</button> <button type="button" class="btn btn-outline-danger">Outline Danger</button> <button type="button" class="btn btn-outline-warning">Outline Warning</button> <button type="button" class="btn btn-outline-info">Outline Info</button> <button type="button" class="btn btn-outline-light">Outline Light</button> <button type="button" class="btn btn-outline-dark">Outline Dark</button> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
HTML
๋ณต์‚ฌ