반응 형 이미지
반응 형 이미지
반응 형 이미지는 화면 크기에 맞게 자동으로 조절됩니다.
효과를 보려면 브라우저 창 크기를 조정하십시오.

원래 크기보다 커야하지만 확대되지 않은 이미지의 크기를 줄이려면 다음을 추가하십시오.
예
img {
max-width: 100%;
height: auto;
}
[전체소스]
<!DOCTYPE html>
<html>
<head>
<style>
img {
max-width: 100%;
height: auto;
}
</style>
</head>
<body>
<h2>Responsive Images</h2>
<p>Responsive images will automatically adjust to fit the size of the screen.</p>
<p>Resize the browser window to see the effect:</p>
<img src="trolltunga.jpg" alt="Norway" width="1000" height="300">
</body>
</html>
게시글 목록
| 번호 | 제목 |
|---|---|
| 3056 | |
| 3055 | |
| 3054 | |
| 3051 | |
| 3050 | |
| 3049 | |
| 3046 | |
| 3045 | |
| 3044 |
HTML
글자 간격 Letter Spacing
|
| 3043 |
CSS
text-indent
|
| 3042 |
CSS
text-transform
|
| 3041 |
CSS
text-decoration
|
| 3040 |
CSS
Text Alignment
|
| 3039 |
CSS
Text Color
|
| 3038 | |
| 3034 |
CSS
Outline Width
|
| 3033 |
CSS
Outline Color
|
| 3032 |
CSS
CSS Outline
|
| 3027 |
CSS
CSS Box Model
|
| 3026 | |
| 3025 | |
| 3024 |
CSS
CSS Padding
|
| 3023 |
CSS
CSS Margins
|
| 3022 | |
| 3021 | |
| 3020 | |
| 3019 |
HTML
HTML <video> 요소
1
|
| 3018 |
HTML
html google map
|
| 3017 |
HTML
SVG와 캔버스의 차이점
|
| 3016 |
HTML
SVG Logo
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기