반응 형 이미지
반응 형 이미지
이미지는 모든 크기로 제공됩니다. 그렇게 스크린. 반응 형 이미지는 화면 크기에 맞게 자동으로 조정됩니다.
태그에 .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>
게시판 목록
퍼블리싱강좌
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 148 | AngularJS | 8년 전 | 1663 | ||
| 147 | AngularJS | 8년 전 | 1079 | ||
| 146 | AngularJS | 8년 전 | 1266 | ||
| 145 | AngularJS | 8년 전 | 1373 | ||
| 144 | AngularJS | 8년 전 | 1163 | ||
| 143 | AngularJS | 8년 전 | 1206 | ||
| 142 | AngularJS | 8년 전 | 1176 | ||
| 141 | AngularJS | 8년 전 | 1337 | ||
| 140 | AngularJS | 8년 전 | 1202 | ||
| 139 | AngularJS | 8년 전 | 1449 | ||
| 138 | AngularJS | 8년 전 | 1156 | ||
| 137 | AngularJS | 8년 전 | 1066 | ||
| 136 | AngularJS | 8년 전 | 1164 | ||
| 135 | AngularJS | 8년 전 | 1684 | ||
| 134 | AngularJS | 8년 전 | 1391 | ||
| 133 | AngularJS | 8년 전 | 1484 | ||
| 132 | AngularJS | 8년 전 | 1105 | ||
| 131 | AngularJS | 8년 전 | 1376 | ||
| 130 | AngularJS | 8년 전 | 1466 | ||
| 129 | AngularJS | 8년 전 | 1449 | ||
| 128 | AngularJS | 8년 전 | 2070 | ||
| 127 | AngularJS | 8년 전 | 1494 | ||
| 126 | jQuery Mobile | 8년 전 | 2268 | ||
| 125 | jQuery Mobile | 8년 전 | 2027 | ||
| 124 | jQuery Mobile | 8년 전 | 1891 | ||
| 123 | jQuery Mobile | 8년 전 | 1825 | ||
| 122 | jQuery Mobile | 8년 전 | 1863 | ||
| 121 | jQuery Mobile | 8년 전 | 2067 | ||
| 120 | jQuery Mobile | 8년 전 | 1601 | ||
| 119 | jQuery Mobile | 8년 전 | 1681 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기