값을 변경하지 않으면 hover
, active
및 focus
이 자동으로 a
표준 태그의 설정을 상속합니까? 예를 들어호버, 액티브, 포커스 상태가 값을 상속합니까?
:
.wrapper .left .main .row .holder .more a,
#content .wrapper .left .main .row .holder .more a:visited
{
width: 92px;
min-width: 92px;
max-width: 92px;
height: 23px;
min-height: 23px;
max-height: 23px;
display: block;
margin: 0px auto;
background: #fff url(../images/more-info-btn.png) top left no-repeat;
}
#content .wrapper .left .main .row .holder .more a:hover {
width: 92px;
min-width: 92px;
max-width: 92px;
height: 23px;
min-height: 23px;
max-height: 23px;
display: block;
margin: 0px auto;
background: #fff url(../images/more-info-btn.png) bottom left no-repeat;
}
는 아래 같은 일을 할 것인가?
#content .wrapper .left .main .row .holder .more a,
#content .wrapper .left .main .row .holder .more a:visited
{
width: 92px;
min-width: 92px;
max-width: 92px;
height: 23px;
min-height: 23px;
max-height: 23px;
display: block;
margin: 0px auto;
background: #fff url(../images/more-info-btn.png) top left no-repeat;
}
#content .wrapper .left .main .row .holder .more a:hover {
background: #fff url(../images/more-info-btn.png) bottom left no-repeat;
}
CSS의 상속은 부모 요소에서 스타일을 가져 오는 것을 의미하기 때문에 값을 정확히 "상속하지"않습니다. 오히려 값은 * 계단식 *이거나 일반적인 'a' 규칙에서 가져온 것입니다 (혼란 스럽습니다, 알고 있습니다). 여전히 올바른 생각을 가지고 있습니다. – BoltClock