이 작은 jQuery 코드가 Internet Explorer에서 작동하지 않는 이유는 무엇입니까? IT는 모든 Webkit 브라우저에서 잘 작동합니다.Jquery Internet Explorer 호환성 (토글 및 애니메이션)
$('#logo').toggle(function() {
$('#about').animate({'top': '-400px'},'slow');
}, function() {
$('#about').animate({'top': '0px'},'slow');
});
CSS :
#logo {
margin:-55px auto 0 auto;
cursor:pointer;
}
#about {
width:100%;
height:200px;
position:fixed;
top:0px;
z-index: 3000;
}
HTML
<div id="header">
<div id="about">
<p>test</p>
<img id="logo2" src="assets/img/logokleinhover.png" alt="Logo" />
</div>
</div>
어떻게 html과 CSS를 설정 했습니까? – Nalum
당신은 로고의 ID와 함께 아무것도 가지고 있지 않습니다 ... – Patricia
"해시 태그를 제거했습니다"- 왜? –