3
안녕하세요. 호버 위에서 두 이미지가 희미 해져서 내 사이트에 이미지 목록을 추가하고 있습니다. 그러나 어떤 이유로 든 "col-md-3 col-sm-3"클래스를 무시하고 컬럼에서 빠져 나옵니다. 이 문제를 어떻게 해결할 수 있습니까?부트 스트랩으로 절대 위치 지정
<div class="container-fluid">
<figure class="col-md-3 col-sm-3 client-item">
<div class="fadehover">
<img class="img-responsive thumbnail" src="images/clients/aersale.jpg" alt="">
<img class="top img-responsive thumbnail" src="images/clients/aersale-grayscale.jpg" alt="">
</div>
</figure>
</div>
CSS :
.clients-list {
margin-top: 60px;
}
.client-item {
margin-left: 10px;
margin-right: -20px;
position: relative;
}
.fadehover {
position: relative;
/* height: 257px; */
}
.fadehover img {
position: absolute;
left: 0;
-webkit-transition: opacity 1s ease-in-out;
-moz-transition: opacity 1s ease-in-out;
-o-transition: opacity 1s ease-in-out;
transition: opacity 1s ease-in-out;
}
.fadehover img.top:hover {
opacity: 0;
}
감사합니다!
도움을 주셔서 감사합니다.하지만 불행히도 이것은 작동하지 않습니다. 내가 무슨 일이 일어나고 있는지 볼 수 있도록 jsfiddle에 Bootstrap CSS를 추가했습니다. http://jsfiddle.net/TLde7/ – jdoimeadios23
@ user3256132 간단한 수정. 'img' 엘리먼트의 순서를 바꾸면됩니다 : http://jsfiddle.net/4rAp8/ –
고마워요! 완벽하게 작동 한 – jdoimeadios23