[英]CSS Issue in ASP.NET MVC 4 Application
I created Report using Telerik Report Designer . 我使用Telerik Report Designer创建了Report。 then I integrated those report into my MVC 4 Application , Everything works fine ,
然后将这些报告集成到我的MVC 4应用程序中,一切正常,
I followed this Telerik Tutorial 我遵循了此Telerik教程
commented below snippet also (in Site.CSS File) 在代码段下方也进行了注释(在Site.CSS文件中)
input, textarea {
border: 1px solid #e2e2e2;
background: #fff;
color: #333;
font-size: 1.2em;
margin: 5px 0 6px 0;
padding: 5px;
width: 300px;
}
table {
border-collapse: collapse;
border-spacing: 0;
margin-top: 0.75em;
border: 0 none;
}
td {
padding: 0.25em 2em 0.25em 0em;
border: 0 none;
}
But I'm getting CSS issue like below attached image. 但是我遇到了CSS问题,如下图所示。
any suggestion Highly Appreciate, 任何建议,高度赞赏,
I think site.css from MVC project messes up with telerik report. 我认为来自MVC项目的site.css与telerik报告混为一谈。 First, try removing site.css altogether.
首先,尝试完全删除site.css。 If that fixes the report, try doing the following:
如果这样可以修复报告,请尝试执行以下操作:
Bring back site.css; 带回site.css;
Put report it in its own container (ie <div class="report"></div>
) 将报告放在自己的容器中(即
<div class="report"></div>
)
Put this at the end of site.css: 将其放在site.css的末尾:
.report input, .report textarea
{
width: initial;
margin: initial;
<..>
}
In other words try resetting CSS from report container; 换句话说,尝试从报告容器中重置CSS;
I've bumped into similar issues where the in browser reports were mis-aligned. 我遇到了类似的问题,其中浏览器中的报告未对齐。 It turned out I was using an older version of the JS and CSS files than the version of Telerik Reporting I was using.
原来,我使用的是JS和CSS文件的旧版本,而不是我使用的Telerik Reporting的版本。 Each version of Telerik Reporting has an updated version of these files.
每个版本的Telerik Reporting都有这些文件的更新版本。 So just verify that it isn't a version mismatch.
因此,只需确认它不是版本不匹配即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.