EasyUI Ifrem弹出框问题
来源:互联网 发布:跳跃网络被告 编辑:程序博客网 时间:2024/06/05 23:49
默认easyui里面的dialog通过href打开一个页面的时候样式会错乱
修改后的效果图
要弹出的页面-里面fit 填充布局
<div id="dgTAttentionPeople"></div>
//关注人
$(function () {
$('#dgTAttentionPeople').datagrid({
toolbar: "#tbTAttentionPeople",
pageNumber: 1,
striped: true,
//pagination: true,
rownumbers: true,
singleSelect: false,
method: 'POST',
fit: true,//填充
url: '/AttentionPeople/GetattionPeopleList',
loadMsg: '数据加载中请稍后……',
onBeforeLoad: function (param) {
param.flag = new Date().getTime();
param.problemID = $("#id").val();
},
columns: [[
{ field: 'ID', title: 'ck', width: 60, align: 'left', checkbox: true },
{ field: 'Adcode', title: '账号', width: 200, align: 'left' },
{ field: 'UserName', title: '用户名', width: 200, align: 'left' }
]]
});
});
如果上面是A页面的话
B页面打开A就需要这样
定义一个div 这样做就可以填充了---的这样用
<div id="dlTAttentionPeople" style="padding:2px;">
B页面打开A就需要这样
定义一个div 这样做就可以填充了---的这样用
<div id="dlTAttentionPeople" style="padding:2px;">
<iframe id="dlTAttentionPeopleIF" height="99%" width="100%" scrolling="auto" frameborder="0" src="/Common/PluginUserIndex"></iframe>
</div>
注意这个属性 大小填充
maximizable: true,
$('#dlTAttentionPeople').dialog({
注意这个属性 大小填充
maximizable: true,
$('#dlTAttentionPeople').dialog({
title: '用户选择',
width: 800,
height: 400,
closed: false,
cache: false,
modal: true,
maximizable: true,
buttons: [{
text: '确定',
handler: function () {
var rows = document.getElementById('dlTAttentionPeopleIF').contentWindow.getSelectUser();
if (rows.length == 0) {
$.messager.alert("操作提示", "本次操作没有选择任何数据。", "info");
$('#dlTAttentionPeople').dialog("close");
return;
}
var userid = "";
for (var i = 0; i < rows.length; i++) {
userid += rows[i].UserID + ",";
}
var param = {};
param.flag = new Date().getTime();
param.userID = userid;
param.problemID = $("#id").val();
$.post("/AttentionPeople/AddTAttentionPeople", param, function (data) {
$.messager.alert("操作提示", data.Msg, "info");
if (data.Result) {
$('#dgTAttentionPeople').datagrid('reload');
$('#dlTAttentionPeople').dialog("close");
}
});
}
},
{
text: '取消',
handler: function () {
$('#dlTAttentionPeople').dialog("close");
}
}]
});
0 0
- EasyUI Ifrem弹出框问题
- easyui弹出提示框
- Easyui弹出框
- EasyUI弹出框
- jquery easyui 弹出消息框
- Easyui 之window 弹出框
- jquery easyui 弹出消息框
- jquery easyui 弹出消息框
- easyui弹出框位置超出
- Easyui-交互式消息弹出框
- EasyUI编辑弹出框设置
- easyui打开dialog后给弹出框内输入框赋值问题
- jQuery EasyUI API 中文文档 - 弹出框
- EasyUI的类似alert弹出框
- EasyUI Dialog弹出框+JS执行字符串
- 关于easyui弹出框的用法
- EasyUI Combobox 单击弹出下拉框
- jQuery easyui中dialog弹出框隐藏
- kubernetes 伸缩扩展
- skynet socketserver
- 单元测试JUNIT
- 深入理解Hadoop集群和网络
- bzoj 4727 [POI2017]Turysta 竞赛图
- EasyUI Ifrem弹出框问题
- bzoj1823(2 sat)
- Linux操作系统下如何制作Image映像文件
- C#实现Zip压缩解压实例
- Redis 设置密码
- 【物流系统】——C#Oracle批量导入(二)OracleBulkCopy
- linux虚拟机复制多节点配置IP
- oj练习--五位以内的对称素数
- skynet gateserver