好吧,我有下面的下面的代码:IE不会激发我的jQuery的.click功能。我能做什么?
SCRIPT:
<script>
$(document).ready(function() {
$(".header").click(function() {
$(this).effect("bounce", { times:2 }, 200);
$(".links").show("slow");
});
});
</script>
HTML:
<body>
<div class="header">
<p><img src="images/logo.png" width="438" height="131" alt="Larz Conwell" /></p>
<p><span class="dash">//</span> Freelance Web Designer & Graphic Artist</p>
</div>
<div class="links">
</div>
</body>
,并在IE中它不会在所有的工作,但它适用于所有其他浏览器。可能是什么问题呢?
我还试过另一个网站,我已经与jquery上它,它的作品完美。
尝试在单击回调中放置一个alert(1);并查看点击时是否发生这种情况。 – 2011-03-05 00:45:47
什么都没有发生): – user645607 2011-03-05 00:51:16
你是否包含jQ库? – s84 2011-03-05 00:54:06