asp.net - ReportViewer 变形的工具栏

标签 asp.net visual-studio-2012 reportviewer

我在 VS2012 中的一个 asp.net 页面上使用了 ReportViewer,但工具栏呈现不佳(见图)thats how the toolbar for reportviewer appears in design mode and on the production machine it appers like this. .请协助!!

最佳答案

请按照以下步骤解决此问题,但请不要忘记从文件中进行备份,因为如果您使用 Microsoft 风格,这会影响站点风格。

1- 找到 css 文件并在项目文件夹\content\site.css 中打开它。
2-找到下面的文本(input, textarea)并去掉{}之间的设置

input, textarea {
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #333;
    font-size: 1.2em;
    margin: 5px 0 6px 0;
    padding: 5px;
    width: 300px;
}


input, textarea {
}

3-更改表格下的td,就像这样

td {
padding: 0.25em 2em 0.25em 0em;
border: 0 none;

}


td {
padding: 0px 0px 0px 0px;
border: 0 none;

}

现在,你的生活似乎不错。

关于asp.net - ReportViewer 变形的工具栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18746365/

相关文章:

asp.net - asp.net 页面中的无效 View 状态错误

c# - 尝试 ajax 发布选定复选框列表时超出最大调用堆栈大小

git - Visual Studio 2012 git ssh

c# - ASP.NET session 已过期或找不到

reporting-services - 处理时的 SSRS ReportViewer nullreference 异常

asp.net - 如何从 ASP.NET Core 项目中删除 docker 支持?

javascript - TypeScript 中的区域

c++ - VS2012 中的 is_directory() 对于偶数目录返回 false

c# - Microsoft.Reporting.WinForms 报告查看器控件错误尝试以其访问权限禁止的方式访问套接字

asp.net - 餐厅后端系统和.Net