问:finereport10.0决策报表的悬浮变色如何实现?

image.png

FineReport 数字化转型的学习者 发布于 2022-9-4 17:46
1min目标场景问卷 立即参与
回答问题
悬赏:3 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共3回答
最佳回答
0
CD20160914Lv8专家互助
发布于2022-9-4 18:00(编辑于 2022-9-4 19:15)

setTimeout(function() {

    //选择时背景颜色变量  

//鼠标经过//下面的报表块名称自己改  REPORT0  就是你要改的名称,要大写

$(".x-table.REPORT0table tr").mousemove(function() {

//所在行背景色:红色

        $(this).css("background-color","red");

//所在行单元格字体:18px

        $(this).find("td").css("font-size","18px");

});

//鼠标点击

$(".x-table.REPORT0table tr").mousedown(function() {

//所在行背景色:黄色

        $(this).css("background-color","yellow");

//所在行单元格字体:18px        

        $(this).find("td").css("font-size","18px");

});

//鼠标离开

$(".x-table.REPORT0table tr").mouseout(function() {

//所在行背景色:白色

        $(this).css("background-color","white");

//所在行单元格字体:12px 

        $(this).find("td").css("font-size","12px");

});

}, 1000);

image.png

256.gif

最佳回答
0
3143511Lv5中级互助
发布于2022-9-5 08:00

这个问题我记得以前做过,我是参考这个完成的,希望可以帮到你,请参考:https://help.fanruan.com/finereport/doc-view-3051.html

最佳回答
0
RiveryLv5中级互助
发布于2022-9-5 09:53(编辑于 2022-9-5 09:53)

写在报表块初始化事件,把REPORT3改成你的报表块的名字 大写

setTimeout(function() {

$(".x-table.REPORT3table tr").mousemove(function() {

//所在行背景色:红色  

$(this).find("td").css("background-color","red");

//所在行单元格字体:18px  

$(this).find("td").css("font-size","18px");

});

$(".x-table.REPORT3table tr").mouseout(function() {

//所在行背景色:白色  

$(this).find("td").css("background-color","white");

//所在行单元格字体:12px   

$(this).find("td").css("font-size","12px");

});

}, 1000)

image.png

  • 4关注人数
  • 527浏览人数
  • 最后回答于:2022-9-5 09:53
    请选择关闭问题的原因
    确定 取消
    返回顶部