채택완료

롤오버 css로 구현하기

2015-11-13 (금) 17:08:32 3,690

#comp_if li a{display:block;width:100%;height:100%;text-indent:-99999px;overflow:hidden}
#comp_if li.com_bg1 a{background:url(../img/com_bg1.jpg)  no-repeat;width:248px;height:192px;text-indent:-9999px;overflow:hidden;display:inline-block bottom right #e7f0f6}
#comp_if li.com_bg1 a:hover {background-position:0 -193px bottom right #e7f0f6}

위에 a:hover해서 한줄추가했는데

아무런 동작이 없네여 왜그런ㄱ죠.. 

|

답변 3개

채택된 답변
+20 포인트

 bottom right #e7f0f6 

삭제

2015-11-13 (금) 17:54:46

감사합니다

그냥 오버시 다른 그림 불러오는걸로 해서 해결했습니다. 

comp_if li.com_bg1:hover a {background-position:0 -193px bottom right #e7f0f6}

도 해보셨나요 ? 

답변을 작성하려면 로그인이 필요합니다.