미리보기 이미지
이 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>
게시글 목록
| 번호 | 제목 |
|---|---|
| 3168 | |
| 3167 | |
| 3166 | |
| 3165 |
HTML
HTML5 로컬 저장소
|
| 3164 |
HTML
HTML5 드래그 앤 드롭
|
| 3163 | |
| 3162 |
HTML
YouTube 동영상 ID
|
| 3161 |
HTML
HTML 도우미 (플러그인)
|
| 3160 | |
| 3159 |
HTML
HTML5 비디오
|
| 3158 |
HTML
HTML 멀티미디어 오디오 형식
|
| 3157 |
HTML
HTML 멀티미디어
|
| 3156 |
기타
Google 아이콘
|
| 3155 |
기타
부트 스트랩 아이콘
|
| 3154 |
기타
아이콘을 추가하는 방법
|
| 3153 | |
| 3152 |
반응형
부트 스트랩 <abbr>
|
| 3151 |
반응형
부트 스트랩 <mark>
|
| 3150 | |
| 3149 |
반응형
부트 스트랩의 기본 설정
|
| 3148 |
반응형
부트 스트랩 그리드 시스템
|
| 3147 |
CSS
왼쪽에 툴팁 나오게 하는 소스
|
| 3146 | |
| 3145 |
CSS
css를 이용한 툴팁만들기
|
| 3144 | |
| 3143 | |
| 3142 | |
| 3136 |
CSS
css 이미지 갤러리
|
| 3135 |
CSS
CSS 드롭 다운
2
|
| 3134 |
CSS
css 기본 툴팁
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기