我在一个页面上有几个点击功能,除了一个之外,IE中全部触发。它也只发生在IE,Firefox和Chrome中都很好。
可以在这里看到网站(这是不起作用的页脚,它应该显示一个带视频的弹出窗口):http://sealection.info/
$('#footer').click(function() {
event.preventDefault();
$('.splash').stop().delay(200).fadeIn('300');
$('.splashcontent').stop().delay(400).fadeIn('300');
$('.overlay').stop().fadeOut('300');
$('#vimeo_frame').attr('src', 'http://player.vimeo.com/video/22659728?title=0&byline=0&portrait=0&autoplay=1');
});
答案 0 :(得分:1)
试试这个
$('#footer').click(function(event) {
event.preventDefault();
.....
答案 1 :(得分:0)
你有例外:
event.preventDefault();
事件未定义