가벼운 자막을 사용하려고합니다. 예를 들어, Mosaic과 같은 슬라이딩 캡션을 만들려고합니다. 모든 주요 브라우저에서 모든 것이 잘 보이지만 (ie8에서 느린 것처럼 보일지라도) ie7에서는 아무 일도 일어나지 않습니다. ieTester으로 테스트 중이며 소프트웨어 또는 코드에서 버그가 발생했는지 전혀 알 수 없습니다. 개선 할 수있는 몇 가지 정보가있을 것입니다.새내기 - ie7 및 jquery .animate() - 자막 자막
아무튼 고마워요.
HTML :
<div class="imgbox">
<img src="#" />
<a href="#" class="caption">
<div class="details">
<h6>Lorem ipsum</h6>
<p>Lorem ipsum dolor sit amet,…</p>
</div>
</a>
</div>
CSS :
.imgbox{
width: 204px;
height: 154px;
position: relative;
overflow: hidden;
float: left;
margin: 10px;
border:1px solid #999;
-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.8);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);}
.imgbox img{
width: 200px;
height: 150px;
padding: 2px;
overflow: hidden;}
.caption{
display:block;
position:absolute;
top:104px;
height:100%;
width:100%;
background: rgb(0,0,0);
background: rgba(0,0,0,0.6);
background: transparent\9;
zoom: 1;
-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)"; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);}
JS :
$(".imgbox").hover(
function()
{$(this).children('.caption').animate({top:0},"fast");},
function()
{$(this).children('.caption').animate({top:104},"fast");}
);
안녕하십니까. @Guffa 나는 당신이 말한 것을 시도했지만 그것은 ie7로 아무 것도 바뀌지 않았습니다. 간단한 자막을 만드는 더 좋은 방법이 있습니까? 나는 또한 CSS로만 전환을 시도했다. '.imgbox : hover> .caption {top : 0;}' ie7에서는 아무 일도 일어나지 않았다. – Sanka51