2017-10-05 6 views
-1

제출 버튼에 마우스를 가져 가면 이미지를 변경하려고합니다. 그러나 나는 실수가 어디인지 알지 못합니다. 여기에 CSS가 있습니다.HTML, CSS - submit, image

#Prihlaseni { 
    position: absolute; 
    cursor: pointer; 
    top: 408px; 
    left: 507px; 
    width: 30px; 
    height: 32px; 
    width: 105px; 
    border: 1px; 
    font-size: 0px; 
} 

#Prihlaseni:hover { 
    background-image: url(\Users\Tikus\Desktop\PrihlaseniHtv.png); 
} 
+1

구글'CSS 호버 배경 - image' 그리고 당신이 당신이 찾고있는 무엇의 예를 많이 찾을 수 있습니다 생각합니다. – theGleep

답변

0

예를 jsfiddle에서 실행했는데 제대로 작동합니다.

#Prihlaseni { 
    position: absolute; 
    cursor: pointer; 
    top: 408px; 
    left: 507px; 
    width: 30px; 
    height: 32px; 
    width: 105px; 
    border: 1px; 
    font-size: 0px; 
} 

#Prihlaseni:hover { 
    background-image: url(https://www.w3schools.com/css/img_fjords.jpg); 
} 

https://jsfiddle.net/csLnz5em/