다음은 CSS를 사용하여 이미지에 테두리를 추가하는 코드입니다 -
예시
<!DOCTYPE html>
<html>
<head>
<style>
img {
border: 8px solid rgb(0, 238, 255);
width: 400px;
height: 400px;
}
</style>
</head>
<body>
<h1>Border Around Image Example</h1>
<img src="https://images.pexels.com/photos/34950/pexels-photo.jpg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940">
</body>
</html> 출력
위의 코드는 다음과 같은 출력을 생성합니다 -
