此腳本適用於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