css 미리보기 이미지
미리보기 이미지
이 border속성을 사용하여 축소판 이미지를 만듭니다.

예
img {
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
width: 150px;
}
<img src="paris.jpg" alt="Paris">
[전체소스]
<!DOCTYPE html>
<html>
<head>
<style>
img {
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
width: 150px;
}
</style>
</head>
<body>
<h2>Thumbnail Images</h2>
<p>Use the border property to create thumbnail images:</p>
<img src="paris.jpg" alt="Paris" style="width:150px">
</body>
</html>

예
img {
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
width: 150px;
}
img:hover {
box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}
<a href="paris.jpg">
<img src="paris.jpg" alt="Paris">
</a>
[전체소스]
<!DOCTYPE html>
<html>
<head>
<style>
img {
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
width: 150px;
}
img:hover {
box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
}
</style>
</head>
<body>
<h2>Thumbnail Image as Link</h2>
<p>Use the border property to create thumbnail images. Wrap an anchor around the image to use it as a link.</p>
<p>Hover over the image and click on it to see the effect.</p>
<a target="_blank" href="paris.jpg">
<img src="paris.jpg" alt="Paris" style="width:150px">
</a>
</body>
</html>
게시판 목록
퍼블리셔팁
퍼블리싱과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 887 | HTML | 8년 전 | 2232 | ||
| 886 | HTML | 8년 전 | 1778 | ||
| 885 | HTML | 8년 전 | 2203 | ||
| 884 | HTML | 8년 전 | 2258 | ||
| 883 | HTML | 8년 전 | 2420 | ||
| 882 | HTML | 8년 전 | 2171 | ||
| 881 | HTML | 8년 전 | 2299 | ||
| 880 | HTML | 8년 전 | 2617 | ||
| 879 | HTML | 8년 전 | 1715 | ||
| 878 | HTML | 8년 전 | 1943 | ||
| 877 | HTML | 8년 전 | 1957 | ||
| 876 | HTML | 8년 전 | 2147 | ||
| 875 | HTML | 8년 전 | 1687 | ||
| 874 | HTML | 8년 전 | 2715 | ||
| 873 | HTML | 8년 전 | 2561 | ||
| 872 | HTML | 8년 전 | 2612 | ||
| 871 | HTML | 8년 전 | 2919 | ||
| 870 | HTML | 8년 전 | 2194 | ||
| 869 | HTML | 8년 전 | 2631 | ||
| 868 | HTML | 8년 전 | 2148 | ||
| 867 | HTML | 8년 전 | 1923 | ||
| 866 | HTML | 8년 전 | 1658 | ||
| 865 | HTML | 8년 전 | 1913 | ||
| 864 | HTML | 8년 전 | 2041 | ||
| 863 | HTML | 8년 전 | 1339 | ||
| 862 | HTML | 8년 전 | 1644 | ||
| 861 | HTML | 8년 전 | 1609 | ||
| 860 | HTML | 8년 전 | 1876 | ||
| 859 | HTML | 8년 전 | 1534 | ||
| 858 | HTML | 8년 전 | 1826 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기