ext.window背景

Riverwcj 2010-06-22 10:43:06
在弹出ext.window窗口的时候。。。标题栏的背影是灰色的。。。。这是为什么呢。哪位大哥大组知道的帮我搞定一下。、
下面是ext.window的代码:
var win = new Ext.Window({
width:500,
height:300,
closable:true,
title:'添加人员',
closeAction:'close',
resizable:false,
layout:'form',
modal:true,
items:{
xtype:'textfield',
fieldLabel:'姓名'
},
buttons:[{
text:'确定',
handler:function(){alert(1);}
},{
text:'取消',
handler:function(){ win.close();
}
}]
});
...全文
524 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
Riverwcj 2010-06-22
  • 打赏
  • 举报
回复
我的ext包都是从www.extjs.com上下载的...
licip 2010-06-22
  • 打赏
  • 举报
回复
把html的头贴进来看看。
hoojo 2010-06-22
  • 打赏
  • 举报
回复
css样式导入有没有问题
tzb08 2010-06-22
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 riverwcj 的回复:]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Conte……
[/Quote]
哈哈 在我这边显示的很正常,是不是你的ext包有问题?或是你的ie有问题?
hoojo 2010-06-22
  • 打赏
  • 举报
回复
用firefox看没有全部灰色的,只有背景是灰色的。window窗口还是原来的颜色。
modal:true是window窗口弹出来的时候设置其他地方灰色,窗口不灰色;没有问题

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>window.html</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="extjs/source/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript">
Ext.onReady(function () {
var win = new Ext.Window({
width:500,
height:300,
closable:true,
title:'添加人员',
closeAction:'close',
resizable:false,
layout:'form',
modal:true,
items:[{
xtype:'textfield',
fieldLabel:'姓名'
}],
buttons:[{
text:'确定',
handler:function(){alert(1);}
},{
text:'取消',
handler:function(){ win.close();}
}]
}).show();
});

</script>

</head>

<body>
</body>
</html>

Riverwcj 2010-06-22
  • 打赏
  • 举报
回复
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ExtTest1</title>
<link rel="stylesheet" href="ext-all.css" type="text/css" />
<script type="text/javascript" src="ext-base.js"></script>
<script type="text/javascript" src="ext-all.js"></script>

<script type="text/javascript">
WindowTest={
Init:function(){
Ext.get("winReg").on("click",function(){
WindowTest.Show();
});
},
Show:function(){
var win = new Ext.Window({
width:500,
height:300,
closable:true,
title:'添加人员',
closeAction:'close',
resizable:false,
layout:'form',
modal:true,
items:{
xtype:'textfield',
fieldLabel:'姓名'
},
buttons:[{
text:'确定',

handler:function(){alert(1);}
},{
text:'取消',
handler:function(){
win.close();
}
}]
});
win.show();
}
}

Ext.EventManager.onDocumentReady(WindowTest.Init);
</script>
</head>

<body>
<input type="button" value="弹出注册窗体" id="winReg" />
</body>
</html>
tzb08 2010-06-22
  • 打赏
  • 举报
回复
你把你html文件里面所有内容发出来看看
Riverwcj 2010-06-22
  • 打赏
  • 举报
回复
Riverwcj 2010-06-22
  • 打赏
  • 举报
回复
Riverwcj 2010-06-22
  • 打赏
  • 举报
回复
我在本机上测试了一下,效果图如下,
背景一点都不统一,,,麻烦大哥大组帮我看一下
zoujp_xyz 2010-06-22
  • 打赏
  • 举报
回复
title 栏颜色深点,不是灰色的吧。
不过换了主题可能会这样
tzb08 2010-06-22
  • 打赏
  • 举报
回复
你说的是“添加人员”的背景色吧?
extjs 对那个地方标题栏的设置的背景本来就是灰色的

52,797

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ajax
社区管理员
  • Ajax
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧