방금 CSS3와 HTML5를 배웠고 다음 코드로 .link div 위로 마우스를 옮길 때 내 스팬 텍스트를 다른 색으로 변환하려고합니다. 어떤 이유로 작동하지 않고, 작동시키기 위해 몇 가지 시도를했지만 지금까지는 운이 없다.스윙 텍스트가 호버상에서 바뀌지 않는다
아무도 내가 문제를 해결하거나 올바른 방향으로 나를 가리킬 수 있습니까?
감사합니다.
-
HTML
<div id="celebrity-list">
<header>
<h2>Celebrities</h2>
</header>
<div id="a">
<span class="letter">A.</span>
<div class="links">
</div>
</div>
</div>
CSS 처음에는
#celebrity-list > div span.letter{
position: relative;
font: 22px Arial;
color: #3a3a3a;
-webkit-transition: color .3s ease-out;
-moz-transition: color .3s ease-out;
-o-transition: color .3s ease-out;
-ms-transition: color .3s ease-out;
transition: color .3s ease-out;
}
#celebrity-list > div .links:hover #celebrity-list > div span.letter{
color: #b43838;
}
#celebrity-list > div .links{
position: relative;
width: 190px;
height: 342px;
background: #f2f2f2;
-webkit-transition: border .3s ease-out;
-moz-transition: border .3s ease-out;
-o-transition: border .3s ease-out;
-ms-transition: border .3s ease-out;
transition: border .3s ease-out;
}
** 실제로 ** 'hover' 스타일을 추가하면 도움이 될 것입니다. – iConnor