Ext.Panel问题

fondOfJava 2009-07-22 11:39:48
代码如下:

<html>
<head>
<link rel="stylesheet" type="text/css" href="csslib/ext-all.css"/>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<script type="text/javascript" src="jslib/ext-base.js"></script>
<script type="text/javascript" src="jslib/ext-all.js"></script>
<script>
Ext.onReady(function(){
new Ext.Panel({
renderTo:"hello",
title:"hello",
width:300,
height:200,
html:'<h1>Hello,easyjf open source!</h1>',
tools:[{id:'save'},{id:'help'},{id:'close'}],
tbar:[{text:'reflesh',pressed:true}]
});
});
</script>
<div id="hello"> </div>
<input type="button" id="btnAlert" value="alert frame"/>

问题:
tools指定的save help,close 在浏览的页面没有显示,不知道什么原因??
...全文
60 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
fondOfJava 2009-07-23
  • 打赏
  • 举报
回复
解决了...........谢谢楼上的几位.
fondOfJava 2009-07-22
  • 打赏
  • 举报
回复
很奇怪,使用example的例子可以看到效果.
但copy到我的页面就没有出现右上角的几个图标.
fondOfJava 2009-07-22
  • 打赏
  • 举报
回复
我继续等啊等................
fondOfJava 2009-07-22
  • 打赏
  • 举报
回复
<html>
<head>
<link rel="stylesheet" type="text/css" href="csslib/ext-all.css"/>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<script type="text/javascript" src="jslib/ext-base.js"></script>
<script type="text/javascript" src="jslib/ext-all.js"></script>
<script>
Ext.onReady(function(){
new Ext.Panel({
renderTo:"hello",
title:"hello",
width:300,
collapsible:true,
height:200,
html:'<h1>Hello,easyjf open source!</h1>',
tools:[{id:'save'},{id:'help'},{id:'close'}],
tbar:[{text:'reflesh',pressed:true}]
});
});
</script>
<div id="hello"> </div>
  • 打赏
  • 举报
回复
看看你引入了ext-all.css样式没有??估计这里出问题!
「已注销」 2009-07-22
  • 打赏
  • 举报
回复
怎么引了两个ext-all.css。都是ext的?

52,797

社区成员

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

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