您的位置:首页 > 其它

ext使用Window弹出时实现关灯效果

2012-01-31 10:19 387 查看
function edit() {
var win;
if (!win) {
win = new Ext.Window({
//applyTo:'hello-win',
layout : 'auto',
//width : 800,
//height : 300,
autoHeight:true,
autoWidth:true,
closeAction : 'hide',
plain : true,
modal: true,
items : new Ext.FormPanel({
labelWidth: 75, // label settings here cascade unless overridden
url:'save-form.php',
frame:true,
title: '查看编辑',
bodyStyle:'padding:5px 5px 0',
width: 350,
defaults: {width: 100},
defaultType: 'textfield',




在window的代码里 加上modal: true,
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: