87,907
社区成员
发帖
与我相关
我的任务
分享
var win = Ext.create('widget.window', {
height: 100,
width: 100,
x:x,
y: y,
title: strspot[a],
renderTo: 'Div1',
plain:true,
})
win.show();
Ext.create('Ext.Panel', {
height: 100,
width: 100,
x:10,
y:10,
title: 'Panel1',
renderTo: 'Div1',
closable: true,
frame: true,
// componentCls: 'floatpl'////////
})
Ext.create('Ext.Panel', {
height: 100,
width: 100,
x: 120,
y: -90,
title: 'Panel1',
renderTo: 'Div1',
closable: true,
frame: true,
// componentCls: 'floatpl'////////
})
Ext.create('Ext.Panel', {
height: 100,
width: 100,
x:10,
y:230,
title: 'Panel1',
renderTo: 'Div1',
closable: true,
frame: true,
// componentCls: 'floatpl'////////
})
Ext.create('Ext.Panel', {
height: 100,
width: 100,
x: 120,
y: 110,
title: 'Panel1',
renderTo: 'Div1',
closable: true,
frame: true,
// componentCls: 'floatpl'////////
})
Ext.create('Ext.Panel', {
height: 100,
width: 100,
x: 230,
y: 10,
title: 'Panel1',
renderTo: 'Div1',
closable: true,
frame: true,
// componentCls: 'floatpl'////////
})
这样貌似又可以 糊涂了
Ext.create('Ext.Panel', {
height: 100,
width: 100,
x:10,
y:10,
title: 'Panel1',
renderTo: 'Div1',
closable: true,
frame: true,
// componentCls: 'floatpl'////////
})
Ext.create('Ext.Panel', {
height: 100,
width: 100,
x: 110,
y: 10,
title: 'Panel1',
renderTo: 'Div1',
closable: true,
frame: true,
// componentCls: 'floatpl'////////
})
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Grouped Header Grid Example</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../shared/example.css" />
<script type="text/javascript" src="../../ext-all.js"></script>
<style>
.floatpl{float:left;margin:10px 10px 0px 0px;}
</style>
<script type="text/javascript">
Ext.onReady(function () {
for (var i = 0; i < 20; i++) {
Ext.create('Ext.Panel', {
height: 100,
width: 100,
title: 'Panel' + i,
renderTo: 'Div1',
closable: true,
frame:true,
componentCls: 'floatpl'////////
})
}
});
</script>
</head>
<body>
<div id="Div1" style="width:100%;height:200px;overflow:auto"></div>
</body>
</html>