我一直在用新的剃须刀视图引擎来处理asp.net mvc 3。jqGrid中的大标题
我的目标是在每列中都有一个带有jqGrid的固定流体2列布局。我虽然没有运气!只要向右列添加网格,它的标题就会变得很大。我不认为它的jqGrids错误,因为如果我删除样式两个网格按预期显示。
我看到,jqGrid的CSS应用display:block作为ui-helper-clearfix类的一部分。
任何人有任何建议,以获得这项工作或其他固定流体的CSS我可以试验(我试过一堆模板从网上没有运气)?
代码从模板文件:
... <style type="text/css">
#left { float: left; width: 400px;}
#content { margin-left: 400px;}
</style>
</head>
<body>
<div>
<div id="left">
@RenderSection("SPTreeGrid")
</div>
<div id="content">
@RenderSection("ClientPickerGrid")
</div>
</div>
</body>
更新:
我的页面确实需要在左侧和流体一个显示在固定宽度的2个格对。
这是我的CSS问题(我仍然不知道为什么),但我最终使用下面的布局,工程(铁路是左栏):
#container{
overflow:hidden;
padding-left:400px; /* The width of the rail */
}
* html #container{
height:1%; /* So IE plays nice */
}
#content
{
width:100%;
border-left:400px; /* The width and color of the rail */
margin-left:-400px;
float:right;
}
#rail{
width:400px;
float:left;
margin-left:-400px;
display:inline; /* So IE plays nice */
}
CSHTML:
<div id="container">
<div id="content">
@RenderSection("ReportGrid")
</div>
<div id="rail">
@RenderSection("SPTreeGrid")
@RenderSection("ClientPickerGrid")
</div>
</div>
解决问题的另一种方法可以在[此处]找到(http://stackoverflow.com/a/8057675/315935) – Oleg 2012-01-03 22:02:55