테스트 사이트 - 개발 중인 베타 버전입니다

css 미리보기 이미지

· 8년 전 · 2393

미리보기 이미지


이 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
3164
3163
3162
3161
3160
3159
3158
3157
3156
3155
3154
3153
3152
3151
3150
3149
3148
3147
3146
3145
3144
3143
3142
3136
3135
3134