Hello, everyone.
I have two page files:
"test1.html" is used to generate a dialog with the following code:
<body>
<div id="cs"></div>
<script>
$(function(){
$('#cs').dialog({
title:'my title',
width:200,
height:200,
content:'test'
})
})
</script>
</body>
"test2.html" is used to generate the layout. When clicking the button, I want to call the dialog in "test1.html". code show as below:
<body class="easyui-layout">
<div region="north" style="height: 60px">
<div id="bt" class="easyui-linkbutton" onclick="$('#dlg').load('test1.html')">button</div>
</div>
<div region="west" width=180 title="menu"></div>
<div id="dlg"></div>
</body>
The problem is that when the button is clicked, although the dialog box is displayed, the layout of the layout is messed up.
Please help, thank you very much!