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

마우스 오버시 이미지 안쪽에 테두리주기

· 9년 전 · 203

필요하실수도 있을것 같아 올립니다.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">

<head>

<title>이미지 마우스 오버시 이미지 안쪽에 테두리 주기</title>

<meta http-equiv="content-type" content="text/html;charset=utf-8">

<style type="text/css" media="screen">

a.innerborder, a.innerborder img {

 float: left;

 overflow:hidden;

}

a.innerborder:hover {

 border:4px solid #f00;

}

a.innerborder:hover img {

 margin: -4px;

}

</style>

<meta http-equiv="imagetoolbar" content="no">

</head>

<body>

 

 

<h1>이미지 마우스 오버시 이미지 안쪽에 테두리 주기</h1>

<a href="#" class="innerborder">

  <img src="http://cfile23.uf.tistory.com/image/1113A6094A0D79C00D1A4B" alt=""  border="0" />

</a>

<a href="#" class="innerborder">

  <img src="http://cfile23.uf.tistory.com/image/1113A6094A0D79C00D1A4B" alt="" border="0" />

</a>

<a href="#" class="innerborder">

  <img src="http://cfile23.uf.tistory.com/image/1113A6094A0D79C00D1A4B" alt="" border="0" />

</a>

<a href="#" class="innerborder">

  <img src="http://cfile23.uf.tistory.com/image/1113A6094A0D79C00D1A4B" alt="" border="0" />

</a>

<a href="#" class="innerborder">

  <img src="http://cfile23.uf.tistory.com/image/1113A6094A0D79C00D1A4B" alt="" border="0" />

</a>

<a href="#" class="innerborder">

  <img src="http://cfile23.uf.tistory.com/image/1113A6094A0D79C00D1A4B" alt="" border="0" />

</a>

</body>

</html>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
12487
12486
380
12484
12483
376
12482
12481
12479
12478
12477
12476
12475
12474
12473
12472
12471
12470
12469
371
12468
12467
12466
12465
12464