반응 형 이미지
반응 형 이미지
이미지는 모든 크기로 제공됩니다. 그렇게 스크린. 반응 형 이미지는 화면 크기에 맞게 자동으로 조정됩니다.
태그에 .img-responsive클래스를 추가하여 반응이 빠른 이미지를 만듭니다 <img>. 그러면 이미지가 부모 요소에 맞게 확장됩니다.
.img-responsive클래스는 적용 display: block;및 max-width: 100%;및 height: auto;이미지에 :
예
<img class="img-responsive" src="img_chania.jpg" alt="Chania">
<!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">
<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="img_chania.jpg" alt="Chania" width="460" height="345">
</div>
</body>
</html>
이미지는 모든 크기로 제공됩니다. 그렇게 스크린. 반응 형 이미지는 화면 크기에 맞게 자동으로 조정됩니다.
태그에 .img-responsive클래스를 추가하여 반응이 빠른 이미지를 만듭니다 <img>. 그러면 이미지가 부모 요소에 맞게 확장됩니다.
.img-responsive클래스는 적용 display: block;및 max-width: 100%;및 height: auto;이미지에 :
예
<img class="img-responsive" src="img_chania.jpg" alt="Chania">
<!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">
<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="img_chania.jpg" alt="Chania" width="460" height="345">
</div>
</body>
</html>
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 208 | 부트스트랩 | 8년 전 | 2735 | ||
| 207 | AngularJS | 8년 전 | 1474 | ||
| 206 | AngularJS | 8년 전 | 1121 | ||
| 205 | AngularJS | 8년 전 | 993 | ||
| 204 | AngularJS | 8년 전 | 1395 | ||
| 203 | AngularJS | 8년 전 | 1191 | ||
| 202 | AngularJS | 8년 전 | 1505 | ||
| 201 | AngularJS | 8년 전 | 1455 | ||
| 200 | AngularJS | 8년 전 | 1433 | ||
| 199 | AngularJS | 8년 전 | 1353 | ||
| 198 | AngularJS | 8년 전 | 1236 | ||
| 197 | AngularJS | 8년 전 | 1397 | ||
| 196 | AngularJS | 8년 전 | 1054 | ||
| 195 | AngularJS | 8년 전 | 1263 | ||
| 194 | AngularJS | 8년 전 | 1273 | ||
| 193 | AngularJS | 8년 전 | 1620 | ||
| 192 | AngularJS | 8년 전 | 1366 | ||
| 191 | AngularJS | 8년 전 | 1592 | ||
| 190 | AngularJS | 8년 전 | 1560 | ||
| 189 | AngularJS | 8년 전 | 1652 | ||
| 188 | AngularJS | 8년 전 | 1409 | ||
| 187 | AngularJS | 8년 전 | 1372 | ||
| 186 | AngularJS | 8년 전 | 1418 | ||
| 185 | AngularJS | 8년 전 | 1450 | ||
| 184 | AngularJS | 8년 전 | 1488 | ||
| 183 | AngularJS | 8년 전 | 1486 | ||
| 182 | AngularJS | 8년 전 | 1012 | ||
| 181 | AngularJS | 8년 전 | 1393 | ||
| 180 | AngularJS | 8년 전 | 1283 | ||
| 179 | AngularJS | 8년 전 | 1262 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기