[英]Jquery sliding boxes not working in IE8
在html标签上方添加doctype时,我的Jquery代码在IE8中似乎不起作用。
也许有一种方法可以重组这些代码,使其在ie8中工作。
$(document).ready(function(){
//Caption Sliding (Partially Hidden to Visible)
$('.boxgrid.caption').hover(function(){
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'161px'},{queue:false,duration:160});
});
});
The website can be seen here:
http://www.keencloudmedia.com/sample/test.html
提前致谢!
尝试这个
$(document).ready(function(){
$('.boxgrid.caption').mouseenter(function(){
$(".cover", this).stop().animate({'top':'0px'},160);
});
$('.boxgrid.caption').mouseleave(function() {
$(".cover", this).stop().animate({'top':'161px'},160);
});
});
并且您可以使用此元标记(与jquery兼容)
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.