반응형 이미지의 너비 속성을 100%로 설정합니다. 다음 코드를 실행하여 이미지를 반응형으로 만들 수 있습니다.
예시
<!DOCTYPE html>
<html>
<head>
<meta name = "viewport" content="width=device-width, initial-scale = 1.0">
<style>
img {
width: 100%;
height: auto;
}
</style>
</head>
<body>
<p>To check the effect, you need to resize the browser.</p>
<img src = "https://www.tutorialspoint.com/python/images/python-data-science.jpg"
alt = "Python Data Science" width = "400" height = "300">
</body>
</html>