谷歌浏览器的ReportViewer问题 [英] ReportViewer problem in google chrome
问题描述
我在我的asp.net MVC(C#)应用程序中使用的ReportViewer。在IE和Firefox,中的ReportViewer看起来很好。
I am using Reportviewer in my asp.net mvc (C#) application. In IE and Firefox, the reportviewer looks fine.
但在Chrome中,头和身体得到收缩。我可以纠正标题显示的问题,因为在<建议href=\"http://www.mazsoft.com/blog/post/2009/08/13/ReportViewer-control-toolbar-in-Google-Chrome-browser.aspx\" rel=\"nofollow\">http://www.mazsoft.com/blog/post/2009/08/13/ReportViewer-control-toolbar-in-Google-Chrome-browser.aspx.
But in Chrome, the header and body gets shrinked. I was able to correct the header display problem as suggested in http://www.mazsoft.com/blog/post/2009/08/13/ReportViewer-control-toolbar-in-Google-Chrome-browser.aspx.
if ($.browser.safari) {
$("#ReportViewerControl table").each(function(i, item) {
$(item).css('display', 'inline-block');
});
}
但身体(浏览器)部分似乎仍是在屏幕的一半。这个问题似乎与空的第二 D
表的宽度:
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td onpropertychange="ShowFixedHeaders()" id="oReportCell">....Some Data...</td>
<td height="0" width="100%"></td>
</tr>
</tbody>
</table>
在上表中第二个TD是空的,100%的宽度,这可能是镀铬的bug的原因。如何删除第二个TD的宽度或有任何修补程序吗?
The Second td in the above table is empty with 100% width, this may be the cause of the bug in chrome. How can i remove the width of the second td or is there any fix for this?
我怎样才能访问该元素嵌套iframe内?
How can i access the element inside nested iframe?
推荐答案
如果中的ReportViewer不显示的数据,也没有在任何浏览器渲染的那么就做你的ASP.NET页面如下:
If the Reportviewer does not display the data or it is not rendered in any browser then just do the following in your ASP.NET page:
替换为:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
与下面的标记:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
这篇关于谷歌浏览器的ReportViewer问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!