웹 개발 공부중

부트스트랩 버튼

redeyes 2021. 12. 14. 10:20

부트스트랩 버튼 적용

 

부트스트랩 버튼 링크

https://getbootstrap.com/docs/5.0/components/buttons/

이렇게 길게 써도 적용되는건 밑에 버튼한개

대부분이 환경

class = "btn btn-dark" 이게 부트스트랩 핵심 다외우기는 어렵지만 형태나 형식은 외워야 사용가능

<!doctype html>
<html lang="ko">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
        crossorigin="anonymous"></script>

    <title>부트스트랩 연습하기</title>
</head>

<body>
  	<button type="button" class="btn btn-dark">버튼</button>
</body>

</html>