Reportviewer在ASP.NET中控制加载指示器

Max*_*ion 3 javascript css asp.net reportviewer reporting-services

我只是用新主题为我的网站设置外观,是否可以更改ReportViewer控件的加载图像(绿色)?

我尝试了一些解决方案,但它不起作用,有人可以指导我这个吗? 在此输入图像描述

Tim*_*mes 6

您始终可以使用CSS对其进行修改.

如果您调查从ReportViewer控件呈现的HTML,应该有一个<div>调用[ID_of_control]_AsyncWait_Wait

在我的,我有css;

<style>
    /* this will remove the spinner */
    div#ReportViewer1_AsyncWait_Wait img{ display: none; } 
    /* this allows you to modify the td that contains the spinner */
    div#ReportViewer1_AsyncWait_Wait table tbody tr td:first-child{ background: red; width: 100px; height: 100px; } 
</style>
Run Code Online (Sandbox Code Playgroud)

您需要做的就是设置background-image打开div#ReportViewer1_AsyncWait_Wait table tbody tr td:first-child以拥有自己的自定义图像.