아래 코드로 이미지를 만들었지 만 이미지를 클릭하면 새 탭에서 열리는 링크를 추가해야합니다. 나는 다른 게시물을 통해 검색을 시도했지만 '이미지 호버'와 '링크'의 정확한 조합을 찾을 수 없습니다. 도와 줘서 고맙다.이미지 호버 및 링크 콤보
여기 호버 코드를 this? 추가 이미지 주위의 링크 같은
<!DOCTYPE html>
<html >
<head>
<style type="text/css">
.pic{
width:16px;
height:16px;
opacity: 1;
filter: alpha(opacity=100);
background: url(http://i.picresize.com/images/2014/10/12/QmCgI.png) no-repeat;
}
.pic:hover
{
opacity: 0.3;
filter: alpha(opacity=30); }
</style>
</head>
<body>
<div class="pic">
</div>
</body>
</html>
왜 div가 아닌 를 사용 하시겠습니까? – webkit