You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
895 B
24 lines
895 B
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Fluid Window - jQuery EasyUI Demo</title>
|
|
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
|
|
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
|
|
<link rel="stylesheet" type="text/css" href="../demo.css">
|
|
<script type="text/javascript" src="../../jquery.min.js"></script>
|
|
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<h2>Fluid Window</h2>
|
|
<p>This example shows how to set the width of Window to a percentage of its parent container.</p>
|
|
<div style="margin:20px 0;"></div>
|
|
<div id="w" class="easyui-window" title="Fluid Window" style="width:80%;height:200px;padding:10px;" data-options="
|
|
iconCls:'icon-save',
|
|
onResize:function(){
|
|
$(this).window('hcenter');
|
|
}">
|
|
<p>The window has a width of 80%.</p>
|
|
</div>
|
|
</body>
|
|
</html>
|