决策报表,报表块,实现跑马灯效果,冻结标题行,参照示例三,(不会放链接,放张截图)根据案例做的,没有效果,报表不会自动滚动,也不能鼠标滚动了问:有没有大佬知道原因。(body是绝对布局,步骤做了几遍,没遗漏)-----------------------------------添加以下我做的步骤,没缺--------我的js(和案例一样,改了REPORT1)setTimeout(function() {$("div").find("#frozen-center").css('overflow-x', 'hidden'); $("div").find("#frozen-center").css('overflow-y', 'hidden');$("div").find("#frozen-north").css('overflow-x', 'hidden');$("div").find("#frozen-north").css('overflow-y', 'hidden');$("div").find(".reportContent").css('overflow-y', 'hidden');$("div").find(".reportContent").css('overflow-x', 'hidden');}, 100);window.flag = true;setTimeout(function() {$("#frozen-center").mouseover(function() {window.flag = false;})//鼠标悬停,滚动停止 $("#frozen-center").mouseleave(function() {window.flag = true;})//鼠标离开,继续滚动 var old = -1;var interval = setInterval(function() {if (window.flag) {currentpos = $("div").find("#frozen-center").scrollTop;if (currentpos == old) {$("div").find("#frozen-center").scrollTop = 0;} else {old = currentpos;$("div").find("#frozen-center").scrollTop = currentpos + 1.5;}}}, 25);//以25ms的速度每次滚动3.5PX }, 1000)