easyui超出页面部分不显示
可能是其他的样式影响的,
可是我设置了页面overflow:scroll 也不管用
把_Layout.cshtml模板里的样式去了也不管用?
可是我设置了页面overflow:scroll 也不管用
把_Layout.cshtml模板里的样式去了也不管用?
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<script type="text/javascript" src="~/Content/js/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>
<script type="text/javascript" src="~/Content/js/custom/riskview.js"></script>
<link rel="stylesheet" href="~/Content/js/jquery-easyui-1.3.2/themes/icon.css" type="text/css" />
<link rel="stylesheet" href="~/Content/js/jquery-easyui-1.3.2/themes/default/easyui.css" type="text/css" />
<style type="text/css">
.datagrid-row
{
height:35px;
}
html, body
{
overflow:scroll;
}
</style>
</head>
<body>
<div class="z-toolbar">
<a id="a_query" href="#" plain="true" class="easyui-linkbutton" icon="icon-search" title="查询">查询</a>
</div>
<div id="condition" style="margin:10px 0 200px 0">
<div class="grid_1 lbl">整改内容</div>
<div class="grid_2 val"><input type="text" style="width:300px" class="z-txt easyui-autocomplete autocomplete validatebox-text" /></div>
</div>
<table id="dg"></table>
</body>
</html>
$(function () {
getRiskData();
})
function getRiskData() {
$('#dg').datagrid({
url: "/mms/RiskView/GetRiskData",
rownumbers: true,
singleSelect: true,
fit: true,
striped: true,
nowrap: false,
onSelect: function (rowIndex) {
$(this).datagrid("unselectRow", rowIndex);
},
columns: [[{
title: '内容',
field: 'RiskContent',
width: fixWidth(0.3)
}, {
title: '隐患级别',
field: 'RiskLevel',
align: "center",
width: fixWidth(0.1)
}, {
title: '整改日期',
field: 'CorrectiveDate',
align: "center",
width: fixWidth(0.1)
}, {
title: '责任单位',
field: 'ResponsibleDept',
align: "center",
width: fixWidth(0.1)
}, {
title: '整改责任人',
field: 'ResponsiblePerson',
align: "center",
width: fixWidth(0.1)
}, {
title: '督查落实人',
field: 'ImplementPerson',
align: "center",
width: fixWidth(0.1)
}, {
title: '整改落实情况',
field: 'ImplementDetail',
width: fixWidth(0.1)
}]],
onLoadSuccess: function (data) {
// alert(data);
}
})
}
function fixWidth(percent) {
return document.documentElement.clientWidth * percent; //这里你可以自己做调整
}
...全文
相关推荐
easyui iframe 页面重复加载的问题
解决使用tab布局过程中页面多次加载的问题 如果在使用easyui过程中,你使用了easyui 的tab布局,在tab布局的内容上使用的不是content,而是iframe,那么你的页面有可能多次加载了,这篇文章帮你解决问题
easyUi弹出window窗口传值与调用父页面的方法,子页面给父页面赋值
easyUi弹出window窗口传值与调用父页面的方法,子页面给父页面赋值,详情链接:
Jquery EasyUI 页面框架Demo
Jquery EasyUI 页面框架Demo,共4个
easyui的登录页面
一个很不错的easyui后台的登录页面,有需要的人可以来借鉴一下,有问题也可以相互讨论
jQuery EasyUI 页面加载等待及页面等待层
主要介绍了jQuery EasyUI 页面加载等待及页面等待层,代码简单易懂,非常不错,具有参考借鉴价值,需要的朋友可以参考下


