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>
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 178 | AngularJS | 8년 전 | 1427 | ||
| 177 | AngularJS | 8년 전 | 1200 | ||
| 176 | AngularJS | 8년 전 | 1274 | ||
| 175 | AngularJS | 8년 전 | 1364 | ||
| 174 | AngularJS | 8년 전 | 1138 | ||
| 173 | AngularJS | 8년 전 | 1880 | ||
| 172 | AngularJS | 8년 전 | 1436 | ||
| 171 | AngularJS | 8년 전 | 1128 | ||
| 170 | AngularJS | 8년 전 | 1392 | ||
| 169 | AngularJS | 8년 전 | 1188 | ||
| 168 | AngularJS | 8년 전 | 1001 | ||
| 167 | AngularJS | 8년 전 | 1964 | ||
| 166 | AngularJS | 8년 전 | 1038 | ||
| 165 | AngularJS | 8년 전 | 1103 | ||
| 164 | AngularJS | 8년 전 | 1305 | ||
| 163 | AngularJS | 8년 전 | 1151 | ||
| 162 | AngularJS | 8년 전 | 1365 | ||
| 161 | AngularJS | 8년 전 | 1370 | ||
| 160 | AngularJS | 8년 전 | 1123 | ||
| 159 | AngularJS | 8년 전 | 1091 | ||
| 158 | AngularJS | 8년 전 | 1502 | ||
| 157 | AngularJS | 8년 전 | 1474 | ||
| 156 | AngularJS | 8년 전 | 1323 | ||
| 155 | AngularJS | 8년 전 | 1212 | ||
| 154 | AngularJS | 8년 전 | 1610 | ||
| 153 | AngularJS | 8년 전 | 1084 | ||
| 152 | AngularJS | 8년 전 | 1505 | ||
| 151 | AngularJS | 8년 전 | 1416 | ||
| 150 | AngularJS | 8년 전 | 1110 | ||
| 149 | AngularJS | 8년 전 | 1639 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기