본문 바로가기
Frontend/HTML , CSS

2월 7일 CSS, Bootstrap (20~30)

by howdyoon 2023. 2. 7.

20_플래시메뉴
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>20_플래시메뉴.html</title>
        <style>
            .hide{
                width: 0;
                height: 0;
                margin: 0;
                padding: 0;
                font-size: 0;
                line-height: 0;
            }

            #nav{
                width: 200px;
                margin: 0 auto;
                background-color: silver;
            }

            #nav>ul{
                margin: 0;
                padding: 0;
                list-style: none;
            }

            /*1)링크되는 문자열 스타일*/
            #nav>ul>li>a{
                text-decoration: none;
                font-weight: bold;
                color: black;
                width: 200px;
                height: 64px;
                display: block;
                text-indent: 30px; /*들여쓰기*/

                /*4)이미지 추가*/
                background-image: url(../images/icons.png);
                background-repeat: no-repeat;
                background-position: right 0; /*right top*/
            }

            /*2)링크문자열에 마우스 오버되면 각 배경색 바꾸기*/
            #nav>ul>li:nth-child(1)>a:hover{
                background-color: hotpink;          /*색상이름*/
                --background-color: #33ffff;        /*16진수*/
                --background-color: rgb(0, 255, 0); /*rgb()함수*/
            }
            #nav>ul>li:nth-child(2)>a:hover{
                background-color:#33ffff;
            }
            #nav>ul>li:nth-child(3)>a:hover{
                background-color:rgb(0, 255, 0);
            }
            #nav>ul>li:nth-child(4)>a:hover{
                background-color:#ffff00;
            }

            /*3)링크문자열에 마우스 오버가 되면 다양한 스타일 적용*/
            #nav>ul>li>a:hover{
                color: white;
                font-size: 16px;
                text-shadow: 2px 2px 2px black;
                width: 240px;
                box-shadow: 2px 2px 2px black;
                /*모서리 라운드 처리*/
                border-radius: 0 32px 32px 0;
                /*투명도*/
                opacity: 0.8;
                /*가로방향으로 0.5초 동안 부드럽게*/
                transition: width 0.5s ease;
            }

            /*5)각각 다른 이미지를 보여주기 위해 각 이미지 위쪽 여백을 조절해서 지정*/
            #nav>ul>li:nth-child(2)>a{
                background-position: right -66px;
            }
            #nav>ul>li:nth-child(3)>a{
                background-position: right -465px;
            }
            #nav>ul>li:nth-child(4)>a{
                background-position: right -530px;
            }
        </style>
    </head>
    
    <body>
    
        <h1 class=hide>플래시메뉴</h1>

        <div id="nav">
            <h2 class="hide">주요메뉴</h2>
            <ul>
                <li><a href="#">flickr</a></li>
                <li><a href="#">twitter</a></li>
                <li><a href="#">newsvine</a></li>
                <li><a href="#">last.fm</a></li>
            </ul>
        </div>

    </body>
</html>
21_meta
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>21_meta.html</title>
        <meta charset="UTF-8">
        <meta name="description" content="Free Web tutorials">
        <meta name="keywords" content="HTML, CSS, JavaScript">
        <meta name="author" content="John Doe">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    
    <body>
    <!-- 참조 https://www.w3schools.com/tags/tag_meta.asp -->

    ● 한글을 표현하는 방식(인코딩)
      - 2바이트 또는 3바이트용: 한글, 한자, 일어, 아랍어 등
      - 완성형: EUC-KR, MS949
      - 조합형: UTF-8, 3바이트 할당. 초성+중성+종성을 조합해서 한글표현. 완성형보다 더 많은 한글사용

      ● HTML 문서에서 사용하는 문자셋을 인코딩(필수)
      <meta charset="UTF-8">

      ● HTML 문서에 대한 다양한 정보들(선택)
      <meta name="description" content="Free Web tutorials">
      <meta name="author" content="Jhon Doe">

      ● 검색엔진의 키워드를 정의(선택)
      <meta name="keywords" content="HTML, CSS, JavaScript">

      ● 모든 장치에서 HTML문서를 잘 보이게 하기 위해 뷰포트 설정(필수)
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      
      ● 30초마다 주기적으로 현재 HTML 문서를 새로고침
      <meta http-equiv="refresh" content="30">

    </body>
</html>
22_미디어쿼리
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>22_미디어쿼리.html</title>
        <style>
            /*1)기본*/
            /*
            div {
                width: 100%;
                height: 200px;
                font-size: 12px;
                border: 2px solid red;
            }*/

            /*2) Used for computer screens, tablets, smart-phones etc.*/
            @media screen {
                div {
                    width: 100%;
                    height: 200px;
                    font-size: 12px;
                    border: 2px solid red;
                }
            }

            /*Used for printers*/
            @media print {
                div {
                    width: 100%;
                    height: 200px;
                    font-size: 12px;
                    border: 2px solid yellow;
                }
            }
        </style>
    </head>
    
    <body>
    
        <!-- 참조 https://www.w3schools.com/css/css3_mediaqueries.asp -->
        <div>
            <h3>미디어쿼리</h3>
            - 화면크기 마다 각각 다르게 CSS를 적용하는 것이다.
            - 화면 사이즈를 인식해 서로 다른 CSS를 적용시켜준다. 
            - 보통은 스마트폰, 태블릿 , PC 화면 3개 정도를 구분해준다.
            - 화면 크기가 변할때 스타일을 바뀌도록 해서 반응형 웹을 구현할 수 있다
            <hr>

            <h3>반응형 웹 디자인(Responsive Web Design, RWD)</h3>
            - 하나의 웹사이트에서 PC, 스마트폰, 태블릿 PC 등 접속하는 디스플레이의 종류에 따라 
              화면의 크기가 자동으로 변하도록 만든 웹페이지 접근 기법을 말한다
            - 디바이스 별로 각각 레이아웃(grid)이 달라지는 웹
        </div>

    </body>
</html>
23_intro
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>23_intro.html</title>
        <link rel="stylesheet" href="reset.css">
        <link rel="stylesheet" href="layout.css">

    </head>
    
    <body>
    
        <!--참조 https://www.w3schools.com/css/tryit.asp?filename=tryresponsive_col-s -->

        <div class="header">
            <h1>서울특별시</h1>
          </div>
          
          <div class="row">
            <div class="col-3 col-s-3 menu">
              <ul>
              <li>강남구</li>
              <li>종로구</li>
              <li>서초구</li>
              <li>마포구</li>
              </ul>
            </div>
          
            <div class="col-6 col-s-9">
                <img src="../images/cosmos1.jpg" width="50%">
            </div>
          
            <div class="col-3 col-s-12">
              <div class="aside">
                <h2>퀵메뉴</h2>
              </div>
            </div>
          </div>
          
          <div class="footer">
            <p>Copyright &copy; 2023</p>
          </div>
          
    </body>
</html>
24_bootstrap시작
<!DOCTYPE html>
<html lang="ko">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>24_bootstrap시작.html</title>
    </head>
    
    <body>

        참조 https://www.w3schools.com/bootstrap/bootstrap_ver.asp

        ● [Bootstrap]
        - HTML, CSS, JavaScript framework
        - Bootstrap 3, 4, 5가 있다
        - 웹페이지 개발시 frontend(UI, View)단을 구현하기 위한 무료 오픈소스
        - 주로 CSS, 레이아웃, 반응형 웹 구현시 많이 사용한다

        ● [Bootstrap 사용방법]

        1) 직적링크 (CDN)
        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">

        <!-- jQuery library -->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>

        <!-- Latest compiled JavaScript -->
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

        2) 라이브러리 다운
        https://getbootstrap.com/docs/5.2/getting-started/download/

    </body>
</html>
25_button
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>25_button.html</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

    </head>
    
    <body>
        <h2>Button Style</h2>
        <a href="#" class="btn btn-info" role="button">Link Button</a>
        <button type="button" class="btn">Basic</button>
        <button type="button" class="btn btn-default">Default</button>
        <button type="button" class="btn btn-primary">Primary</button>
        <button type="button" class="btn btn-success">Success</button>
        <button type="button" class="btn btn-info">Info</button>
        <button type="button" class="btn btn-warning">Warning</button>
        <button type="button" class="btn btn-danger">Danger</button>
        <button type="button" class="btn btn-link">Link</button>    

        <h2>Small Block Level Buttons</h2>
        <button type="button" class="btn btn-primary btn-sm block">Button 1</button>
        <button type="button" class="btn btn-default btn-sm block">Button 2</button>

        <h2>Button States</h2>
        <button type="button" class="btn btn-primary">Primary Button</button>
        <button type="button" class="btn btn-primary active">Active Primary</button>
        <button type="button" class="btn btn-primary disabled">Disabled Primary</button>

        <h2>Vertical Btton Grop</h2>
        <div class="btn-group-vertical">
            <button type="button" class="btn btn-primary">Apple</button>
            <button type="button" class="btn btn-primary">Samsung</button>
            <button type="button" class="btn btn-primary">Sony</button>
        </div>

        <h2>Split Button</h2>
        <div class="btn-group">
            <button type="button" class="btn btn-primary">Sony</button>
            <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu" role="menu">
              <li><a href="#">Tablet</a></li>
              <li><a href="#">Smartphone</a></li>
            </ul>
          </div>


    </body>
</html>
26_table
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>26_table.html</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

    </head>
    
    <body>

            <h2>Basic Table</h2>
            <p>The .table class adds basic styling (light padding and only horizontal dividers) to a table:</p>            
            <table class="table">
              <thead>
                <tr>
                  <th>Firstname</th>
                  <th>Lastname</th>
                  <th>Email</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>John</td>
                  <td>Doe</td>
                  <td>john@example.com</td>
                </tr>
                <tr>
                  <td>Mary</td>
                  <td>Moe</td>
                  <td>mary@example.com</td>
                </tr>
                <tr>
                  <td>July</td>
                  <td>Dooley</td>
                  <td>july@example.com</td>
                </tr>
              </tbody>
            </table>

            <h2>Striped Rows</h2>
            <p>The .table-striped class adds zebra-stripes to a table:</p>            
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>Firstname</th>
                  <th>Lastname</th>
                  <th>Email</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>John</td>
                  <td>Doe</td>
                  <td>john@example.com</td>
                </tr>
                <tr>
                  <td>Mary</td>
                  <td>Moe</td>
                  <td>mary@example.com</td>
                </tr>
                <tr>
                  <td>July</td>
                  <td>Dooley</td>
                  <td>july@example.com</td>
                </tr>
              </tbody>
            </table>

            <h2>Bordered Table</h2>
            <p>The .table-bordered class adds borders to a table:</p>            
            <table class="table table-bordered">
              <thead>
                <tr>
                  <th>Firstname</th>
                  <th>Lastname</th>
                  <th>Email</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>John</td>
                  <td>Doe</td>
                  <td>john@example.com</td>
                </tr>
                <tr>
                  <td>Mary</td>
                  <td>Moe</td>
                  <td>mary@example.com</td>
                </tr>
                <tr>
                  <td>July</td>
                  <td>Dooley</td>
                  <td>july@example.com</td>
                </tr>
              </tbody>
            </table>

            <h2>Hover Rows</h2>
            <p>The .table-hover class enables a hover state on table rows:</p>            
            <table class="table table-hover">
            <thead>
             <tr>
                <th>Firstname</th>
                <th>Lastname</th>
                <th>Email</th>
             </tr>
            </thead>
            <tbody>
             <tr>
                <td>John</td>
                <td>Doe</td>
                <td>john@example.com</td>
             </tr>
             <tr>
                <td>Mary</td>
                <td>Moe</td>
                <td>mary@example.com</td>
             </tr>
             <tr>
                <td>July</td>
                <td>Dooley</td>
                <td>july@example.com</td>
             </tr>
            </tbody>
        </table>

        <h2>Condensed Table</h2>
        <p>The .table-condensed class makes a table more compact by cutting cell padding in half:</p>            
        <table class="table table-condensed">
            <thead>
             <tr>
                <th>Firstname</th>
                <th>Lastname</th>
                <th>Email</th>
             </tr>
            </thead>
        <tbody>
             <tr>
                <td>John</td>
                <td>Doe</td>
                <td>john@example.com</td>
             </tr>
             <tr>
                <td>Mary</td>
                <td>Moe</td>
                <td>mary@example.com</td>
             </tr>
             <tr>
                <td>July</td>
                <td>Dooley</td>
                <td>july@example.com</td>
             </tr>
            </tbody>
        </table>

        <h2>Contextual Classes</h2>
        <p>Contextual classes can be used to color table rows or table cells. The classes that can be used are: .active, .success, .info, .warning, and .danger.</p>
        <table class="table">
            <thead>
             <tr>
                <th>Firstname</th>
                <th>Lastname</th>
                <th>Email</th>
             </tr>
            </thead>
            <tbody>
             <tr>
                <td>Default</td>
                <td>Defaultson</td>
                <td>def@somemail.com</td>
             </tr>      
             <tr class="success">
                <td>Success</td>
                <td>Doe</td>
                <td>john@example.com</td>
             </tr>
             <tr class="danger">
                <td>Danger</td>
                <td>Moe</td>
                <td>mary@example.com</td>
             </tr>
             <tr class="info">
                <td>Info</td>
                <td>Dooley</td>
                <td>july@example.com</td>
             </tr>
             <tr class="warning">
                <td>Warning</td>
                <td>Refs</td>
                <td>bo@example.com</td>
             </tr>
             <tr class="active">
                <td>Active</td>
                <td>Activeson</td>
                <td>act@example.com</td>
            </tr>
            </tbody>
        </table>
          
    </body>
</html>
27_image
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>27_image.html</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

    </head>
    
    <body>
        <h2>Rounded Corners</h2>
        <p>The .img-rounded class adds rounded corners to an image (not available in IE8):</p>            
        <img src="../images/cosmos1.jpg" class="img-rounded" alt="코스모스" width="304" height="236"> 

        <h2>Circle</h2>
        <p>The .img-circle class shapes the image to a circle (not available in IE8):</p>            
        <img src="../images/cosmos1.jpg" class="img-circle" alt="코스모스" width="304" height="236"> 

        <h2>Thumbnail</h2>
        <p>The .img-thumbnail class creates a thumbnail of the image:</p>            
        <img src="../images/cosmos1.jpg" class="img-thumbnail" alt="코스모스" width="304" height="236">
        
        <h2>Image</h2>
        <p>The .img-responsive class makes the image scale nicely to the parent element (resize the browser window to see the effect):</p>
        <img class="img-responsive" src="../images/cosmos1.jpg" alt="코스모스" width="460" height="345"> 

        
    </body>
</html>
28_container
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>28_container.html</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

    </head>
    
    <body>

        <!-- 참조 https://www.w3schools.com/bootstrap/bootstrap_get_started.asp -->

        <div class="jumbotron text-center"> <!-- 좌우 여백 있음 -->
            <h1>My First Bootstrap Page</h1>
            <p>Resize this responsive page to see the effect!</p>
          </div>

          <div class="container-fluid"> <!-- 좌우 여백 없음-->
            <h1>My First Bootstrap Page</h1>
            <p>This is some text.</p>
          </div>
          
        
    </body>
</html>
29_pagination
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>29_pagination.html</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

    </head>
    
    <body>

      <!-- 참조 https://www.w3schools.com/bootstrap/bootstrap_pagination.asp-->

      <div class="container">
        <h2>Pagination</h2>
        <p>The .pagination class provides pagination links:</p>                  
        <ul class="pagination">
          <li><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li><a href="#">4</a></li>
          <li><a href="#">5</a></li>
        </ul>
      </div>

      <div class="container">
        <h2>Pagination - Active State</h2>
        <p>Add class .active to let the user know which page he/she is on:</p>
        <ul class="pagination">
          <li><a href="#">1</a></li>
          <li class="active"><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li><a href="#">4</a></li>
          <li><a href="#">5</a></li>
        </ul>
      </div>

      <div class="container">
        <h2>Pagination - Disabled State</h2>
        <p>Add class .disabled if a page for some reason is disabled:</p>
        <ul class="pagination">
          <li><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li class="disabled"><a href="#">4</a></li>
          <li><a href="#">5</a></li>
        </ul>
      </div>

      <div class="container">
        <h2>Pagination - Sizing</h2>
        <p>Add class .pagination-lg for larger blocks or .pagination-sm for smaller blocks.</p>
      
        <p>Large:</p>
        <ul class="pagination pagination-lg">
          <li><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li><a href="#">4</a></li>
          <li><a href="#">5</a></li>
        </ul>
      
        <p>Default:</p>
        <ul class="pagination pagination">
          <li><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li><a href="#">4</a></li>
          <li><a href="#">5</a></li>
        </ul>
      
        <p>Small:</p>
        <ul class="pagination pagination-sm">
          <li><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li><a href="#">4</a></li>
          <li><a href="#">5</a></li>
        </ul>
      </div>

      <div class="container">
        <h2>Breadcrumbs</h2>
        <p>The .breadcrumb class indicates the current page's location within a navigational hierarchy:</p>                  
        <ul class="breadcrumb">
          <li><a href="#">Home</a></li>
          <li><a href="#">Private</a></li>
          <li><a href="#">Pictures</a></li>
          <li class="active">Vacation</li>        
        </ul>
      </div>
  
      <div class="container">
        <h2>Pager</h2>
        <p>The .pager class provides previous and next buttons (links):</p>                  
        <ul class="pager">
          <li><a href="#">Previous</a></li>
          <li><a href="#">Next</a></li>
        </ul>
      </div>

      <div class="container">
        <h2>Pager</h2>
        <p>The .previous and .next classes align each link to the sides of the page:</p>                  
        <ul class="pager">
          <li class="previous"><a href="#">Previous</a></li>
          <li class="next"><a href="#">Next</a></li>
        </ul>
      </div>
    </body>
</html>
30_input
<!DOCTYPE html>
<html lang="ko">
    <head>
        <title>30_input.html</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

    </head>
    
    <body>

        <div class="container">
            <h2>Form control: input</h2>
            <p>The form below contains two input elements; one of type text and one of type password:</p>
            <form>
              <div class="form-group">
                <label for="usr">이름:</label>
                <input type="text" class="form-control" id="usr">
              </div>
              <div class="form-group">
                <label for="pwd">비밀번호:</label>
                <input type="password" class="form-control" id="pwd">
              </div>
            </form>
            
            <h2>Form control: textarea</h2>
            <p>The form below contains a textarea for comments:</p>
            <form>
              <div class="form-group">
                <label for="comment">Comment:</label>
                <textarea class="form-control" rows="5" id="comment"></textarea>
              </div>
            </form>

            <h2>Form control: checkbox</h2>
            <p>The form below contains three checkboxes. The last option is disabled:</p>
            <form>
              <div class="checkbox">
                <label><input type="checkbox" value="">Option 1</label>
              </div>
              <div class="checkbox">
                <label><input type="checkbox" value="">Option 2</label>
              </div>
              <div class="checkbox disabled">
                <label><input type="checkbox" value="" disabled>Option 3</label>
              </div>
            </form>

            <h2>Form control: inline radio buttons</h2>
            <p>The form below contains three inline radio buttons:</p>
            <form>
              <label class="radio-inline">
                <input type="radio" name="optradio" checked>Option 1
              </label>
              <label class="radio-inline">
                <input type="radio" name="optradio">Option 2
              </label>
              <label class="radio-inline">
                <input type="radio" name="optradio">Option 3
              </label>
            </form>

            <h2>Form control: select</h2>
            <p>The form below contains two dropdown menus (select lists):</p>
            <form>
              <div class="form-group">
                <label for="sel1">Select list (select one):</label>
                <select class="form-control" id="sel1">
                  <option>1</option>
                  <option>2</option>
                  <option>3</option>
                  <option>4</option>
                </select>
                <br>
                <label for="sel2">Mutiple select list (hold shift to select more than one):</label>
                <select multiple class="form-control" id="sel2">
                  <option>1</option>
                  <option>2</option>
                  <option>3</option>
                  <option>4</option>
                  <option>5</option>
                </select>
              </div>
            </form>

            <h2>Horizontal form with static control</h2>
            <form class="form-horizontal" action="/action_page.php">
              <div class="form-group">
                <label class="control-label col-sm-2">이메일:</label>
                <div class="col-sm-10">
                  <p class="form-control-static">yma1289@naver.com</p>
                </div>
              </div>
              <div class="form-group">
                <label class="control-label col-sm-2" for="pwd">비밀번호:</label>
                <div class="col-sm-10">          
                  <input type="password" class="form-control" id="pwd" placeholder="Enter password" name="pwd">
                </div>
              </div>
              <div class="form-group">        
                <div class="col-sm-offset-2 col-sm-10">
                  <button type="submit" class="btn btn-default">제출</button>
                </div>
              </div>
            </form>

            <h2>Horizontal form: control states</h2>
            <form class="form-horizontal">
              <div class="form-group">
                <label class="col-sm-2 control-label">Focused</label>
                <div class="col-sm-10">
                  <input class="form-control" id="focusedInput" type="text" value="Click to focus...">
                </div>
              </div>
              <div class="form-group">
                <label for="disabledInput" class="col-sm-2 control-label">Disabled</label>
                <div class="col-sm-10">
                  <input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
                </div>
              </div>
              <fieldset disabled>
                <div class="form-group">
                  <label for="disabledTextInput" class="col-sm-2 control-label">Disabled input and select list (Fieldset disabled)</label>
                  <div class="col-sm-10">
                    <input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
                  </div>
                </div>
                <div class="form-group">
                  <label for="disabledSelect" class="col-sm-2 control-label"></label>
                  <div class="col-sm-10">
                    <select id="disabledSelect" class="form-control">
                      <option>Disabled select</option>
                    </select>
                  </div>
                </div>
              </fieldset>
              <div class="form-group has-success has-feedback">
                <label class="col-sm-2 control-label" for="inputSuccess">Input with success and glyphicon</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="inputSuccess">
                  <span class="glyphicon glyphicon-ok form-control-feedback"></span>
                </div>
              </div>
              <div class="form-group has-warning has-feedback">
                <label class="col-sm-2 control-label" for="inputWarning">Input with warning and glyphicon</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="inputWarning">
                  <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
                </div>
              </div>
              <div class="form-group has-error has-feedback">
                <label class="col-sm-2 control-label" for="inputError">Input with error and glyphicon</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="inputError">
                  <span class="glyphicon glyphicon-remove form-control-feedback"></span>
                </div>
              </div>
            </form>




        </div>

    </body>
</html>

'Frontend > HTML , CSS' 카테고리의 다른 글

2월 6일 CSS, Bootstrap (07~18)  (0) 2023.02.06
2월 3일 HTML, CSS (18~20 / 01~06)  (0) 2023.02.06
2월 2일 HTML, CSS (12~17)  (0) 2023.02.06
2월 1일 HTML (01~11)  (0) 2023.02.06