%를 사용하여 이미지의 높이와 너비를 설정하려면 다음 코드를 실행할 수 있습니다 -
예시
<!DOCTYPE html>
<html>
<head>
<style>
img {
height: 50%;
width: 50%;
}
</style>
</head>
<body>
<p>Sized image in %</p>
<img src = "https://www.tutorialspoint.com/videotutorials/assets/videos/courses/155/images/course_155_image.png" alt = "CSS" width = "200" height = "200">
</body>
</html>