사용자 도구

사이트 도구


wiki:bootstrap:bootstrap_note:bs_grid_basic

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
wiki:bootstrap:bootstrap_note:bs_grid_basic [2021/03/24 08:40]
emblim98 만듦
wiki:bootstrap:bootstrap_note:bs_grid_basic [2023/01/13 18:44] (현재)
줄 13: 줄 13:
 12 개의 컬럼을 모두 개별적으로 사용하지 않으려면, 컬럼을 함께 그룹화해서 더 넓은 컬럼을 만들 수 있습니다.\\ 12 개의 컬럼을 모두 개별적으로 사용하지 않으려면, 컬럼을 함께 그룹화해서 더 넓은 컬럼을 만들 수 있습니다.\\
 \\ \\
 +{{:wiki:bootstrap:bootstrap_note:bootstrap_s_grid_system.png?800|}}\\
 +\\
 +Bootstrap의 그리드 시스템은 반응형이며, 컬럼은 화면 크기에 따라 자동으로 재정렬됩니다.\\
 +\\
 +=====Grid Classes=====
 +Bootstrap의 그리드 시스템에는 4개의 클래스가 있습니다:\\
 +  * ''xs'' (휴대전화 - 너비가 768px 미만인 화면)
 +  * ''sm'' (태블릿 - 너비가 768px 이상인 화면)
 +  * ''md'' (소형 노트북 - 너비가 992px 이상인 화면)
 +  * ''lg'' (노트북 및 데스크톱 - 너비가 1200px 이상인 화면)
 +상기 클래스들을 결합하여 더 동적이고 유연한 레이아웃을 만들 수 있습니다.\\
 +\\
 +=====Basic Structure of a Bootstrap Grid=====
 +다음은 Bootstrap 그리드의 기본 구조입니다.\\
 +\\
 +<HTML>
 +  <div class="row">
 +    <div class="col-*-*"></div>
 +    <div class="col-*-*"></div>
 +  </div>
 +  <div class="row">
 +    <div class="col-*-*"></div>
 +    <div class="col-*-*"></div>
 +    <div class="col-*-*"></div>
 +  </div>
 +  <div class="row">
 +    •••
 +  </div>
 +</HTML>
 +\\
 +  - 가로 행%%(''<div class="row">'')%%을 만듭니다.
 +  - 원하는 개수의 컬럼을 추가합니다.(%%''.col-*-*''%% 클래스가 있는 태그)
 +    * %%''.col-*-*''%%의 숫자는 항상 각 가로 행에 대해 최대 12개까지 추가해야 합니다.
 +\\
 +아래에서는 기본 Bootstrap 그리드 레이아웃의 몇 가지 예제들을 수집했습니다.\\
 +\\
 +=====Three Equal Columns=====
 +{{:wiki:bootstrap:bootstrap_note:three_equal_column.png?800|}}\\
 +\\
 +하기 예제는 태블릿에서 시작하여 큰 데스크톱으로 확장하는 3 개의 동일 너비의 컬럼을 가져 오는 방법을 보여줍니다.\\
 +너비가 768px 미만인 휴대 전화 또는 화면에서는 컬럼이 자동으로 쌓입니다:\\
 +====예제====
 +<HTML>
 +<!DOCTYPE html>
 +<html lang="en">
  
 +<head>
 +    <meta charset="UTF-8">
 +    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 +    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 +    <title>Bootstrap Example</title>
 +    <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.5.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-fluid">
 +        <h1>Hello World!</h1>
 +        <p>Resize the browser window to see the effect.</p>
 +        <p>The columns will automatically stack on top of each other when the screen is less than 768px wide.</p>
 +        <div class="row">
 +            <div class="col-sm-4" style="background-color:lavender;">.col-sm-4</div>
 +            <div class="col-sm-4" style="background-color:lavenderblush;">.col-sm-4</div>
 +            <div class="col-sm-4" style="background-color:lavender;">.col-sm-4</div>
 +        </div>
 +    </div>
  
 +</body>
 +</html>
 +</HTML>
 +\\
 +=====Two Equal Columns=====
 +하기 예제에서는 태블릿에서 시작하여 대형 데스크톱으로 확장하는 두 개의 다양한 너비의 컬럼을 가져 오는 방법을 확인합니다.\\
 +====예제====
 +<HTML>
 +<!DOCTYPE html>
 +<html lang="en">
  
 +<head>
 +    <meta charset="UTF-8">
 +    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 +    <meta name="viewport" content="width=device-width, initial-scale=1.0">
 +    <title>Bootstrap Example</title>
 +    <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.5.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-fluid">
 +        <h1>Hello World!</h1>
 +        <p>Resize the browser window to see the effect.</p>
 +        <p>The columns will automatically stack on top of each other when the screen is less than 768px wide.</p>
 +        <div class="row">
 +            <div class="col-sm-4" style="background-color:lavender;">.col-sm-4</div>
 +            <div class="col-sm-8" style="background-color:lavenderblush;">.col-sm-8</div>
 +        </div>
 +    </div>
 +
 +</body>
 +</html>
 +</HTML>
  
  
  
 {{tag>오션 Bootstrap Grids}} {{tag>오션 Bootstrap Grids}}
/volume1/web/dokuwiki/data/attic/wiki/bootstrap/bootstrap_note/bs_grid_basic.1616542836.txt.gz · 마지막으로 수정됨: 2022/03/10 19:52 (바깥 편집)