此脚本适用于Chrome和Firefox,但不适用于Internet Explorer。 任何人都可以请帮忙吗?脚本不能在Internet Explorer中工作
<script type="text/javascript" language="javascript">
$(document).scroll(function(e) {
if($(this).scrollTop() > 170 && $(window).scrollTop() + $(window).height() != $(document).height()) {
$("#testimonial_list").css({"position" : "fixed", "top" : "10px"});
} else {
$("#testimonial_list").css({"position" : "absolute", "top" : "210px"});
}
});
</script>
什么是不工作?它在做什么? – 2012-07-05 14:26:40
它在IE中根本不会触发:( – 2012-07-05 14:27:33
尝试在http://jsfiddle.net上设置一个演示文件,其中包含ur html代码 – TRR 2012-07-05 14:28:05