div 안에 마우스가 있으면 주어진 div 내의 모든 링크를 어떻게 바꿀 수 있습니까?div 안에있는 모든 링크를 어떻게 변경합니까?
내가이 설정 한 :
nav.main {
border: 1px dashed black;
width: auto;
height: auto;
overflow: hidden;
list-style: none;
}
nav a {
color: black;
text-decoration: none;
}
div.button:hover, a:hover {
position:relative;
background:#000000;
color: white;
}
이 내가하고 싶은,하지만 당신은 링크 자체 유혹, 대신에 링크를 변경 할 때 그것은 단지 링크 색상이 변경됩니다 정확히 수행 마우스가 div 안에있을 때의 색상.
어떻게 수정합니까?
u 의미 : div.button : 호버 a –
@K 이바노프 예, 해결했습니다. – Sotiris
일해 줘서 고마워. –