Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net Mozila中的报表查看器宽度问题_Asp.net_Html_Css_Reporting Services_Mozilla - Fatal编程技术网

Asp.net Mozila中的报表查看器宽度问题

Asp.net Mozila中的报表查看器宽度问题,asp.net,html,css,reporting-services,mozilla,Asp.net,Html,Css,Reporting Services,Mozilla,报告查看器的宽度/高度在Mozila Firefox中无法正确显示,但在IE中却能完美显示。Mozila中的显示大小为450宽,175高,完全符合IE的要求,如整页所示。我在px中设置了宽度,而不是%age,但得到了相同的值。 有人能解决这个问题吗? 这是我的.aspx页面源代码 <form id="form1" runat="server"> <div id="divException" runat="server" style="text-align: center; p

报告查看器的宽度/高度在
Mozila Firefox
中无法正确显示,但在
IE
中却能完美显示。Mozila中的显示大小为
450宽,175高
,完全符合
IE
的要求,如整页所示。我在px中设置了宽度,而不是%age,但得到了相同的值。 有人能解决这个问题吗? 这是我的
.aspx页面源代码

 <form id="form1" runat="server">
<div id="divException" runat="server" style="text-align: center; padding-top: 100px"
    visible="false">
    <asp:Label ID="lblException" runat="server" Text="Sorry, no data found!!!" Font-Size="Large"
        ForeColor="Red"></asp:Label>
</div>
<div style="height: 100%; width: 100%;">
    <rsweb:ReportViewer ID="rptvReport" runat="server" Width="100%" Height="95%">
    </rsweb:ReportViewer>
</div>
</form>


您是否偶然触发IE中的怪癖模式?无论如何,很难说会发生什么,除非指定应用于所有更高级别元素(body?)的样式,这是已知的问题,Mozila、Safari等中的MS SQL Reporting Services不支持某些功能


这帮我解决了宽度问题

浏览到C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\Pages\ReportViewer.aspx

将信息添加到标记样式特性

非常棘手的解决方案。。。。。。


添加此样式可以解决问题,但Microsoft指出缺少一些功能

这就产生了问题,我在这里所做的就是把它变成

 display: table !important;

这就解决了问题

谢谢你的快速回复,我只在head标签中添加了以下样式,页面中没有其他定义。html,正文{高度:100%;宽度:100%;边距:0px;填充:0px;}我使用了SQL Reporting Services。我找不到该目录旁边的C:\Program Files\Microsoft SQL Server\在这里我找到了MSSQL.1和MSSQL.2,但没有找到MSSQL.3等等……谢谢。我将此代码添加到SSRS服务器页面(ReportServer/Pages/ReportViewer.aspx)。我只需要将table#rptvReport更改为table#ReportViewerControl。
 <style type="text/css">
    html, body, form
    {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    table#rptvReport
    {
        display: table !important;
        background-color:White;
        min-height:500px;
    }
</style>
style="display:inline-block"
 display: table !important;