2 개의 서로 다른 열
2 개의 서로 다른 열
다음 예는 태블릿에서 시작하여 대형 데스크톱으로 확장하는 두 개의 다양한 너비 열을 얻는 방법을 보여줍니다.
예
<div class="row">
<div class="col-sm-4">.col-sm-4</div>
<div class="col-sm-8">.col-sm-8</div>
</div>
[전체소스]
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</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.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/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>
<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>
다음 예는 태블릿에서 시작하여 대형 데스크톱으로 확장하는 두 개의 다양한 너비 열을 얻는 방법을 보여줍니다.
예
<div class="row">
<div class="col-sm-4">.col-sm-4</div>
<div class="col-sm-8">.col-sm-8</div>
</div>
[전체소스]
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</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.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/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>
<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>
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 148 | AngularJS | 8년 전 | 1665 | ||
| 147 | AngularJS | 8년 전 | 1081 | ||
| 146 | AngularJS | 8년 전 | 1266 | ||
| 145 | AngularJS | 8년 전 | 1373 | ||
| 144 | AngularJS | 8년 전 | 1163 | ||
| 143 | AngularJS | 8년 전 | 1208 | ||
| 142 | AngularJS | 8년 전 | 1176 | ||
| 141 | AngularJS | 8년 전 | 1338 | ||
| 140 | AngularJS | 8년 전 | 1204 | ||
| 139 | AngularJS | 8년 전 | 1450 | ||
| 138 | AngularJS | 8년 전 | 1157 | ||
| 137 | AngularJS | 8년 전 | 1068 | ||
| 136 | AngularJS | 8년 전 | 1167 | ||
| 135 | AngularJS | 8년 전 | 1685 | ||
| 134 | AngularJS | 8년 전 | 1391 | ||
| 133 | AngularJS | 8년 전 | 1486 | ||
| 132 | AngularJS | 8년 전 | 1105 | ||
| 131 | AngularJS | 8년 전 | 1379 | ||
| 130 | AngularJS | 8년 전 | 1466 | ||
| 129 | AngularJS | 8년 전 | 1450 | ||
| 128 | AngularJS | 8년 전 | 2070 | ||
| 127 | AngularJS | 8년 전 | 1494 | ||
| 126 | jQuery Mobile | 8년 전 | 2268 | ||
| 125 | jQuery Mobile | 8년 전 | 2027 | ||
| 124 | jQuery Mobile | 8년 전 | 1892 | ||
| 123 | jQuery Mobile | 8년 전 | 1825 | ||
| 122 | jQuery Mobile | 8년 전 | 1863 | ||
| 121 | jQuery Mobile | 8년 전 | 2068 | ||
| 120 | jQuery Mobile | 8년 전 | 1602 | ||
| 119 | jQuery Mobile | 8년 전 | 1682 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기