刚接触extjs,效果出不来
<%@page contentType="text/html;charset=utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!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">
<link rel="stylesheet" type="text/css" href="ext-3.4.1/resources/css/ext-all.css"/>
<script type="text/javascript" src="ext-3.4.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext-3.4.1/ext-all.js"></script>
<head>
<script type="text/javascript">
Ext.onReady(function(){
var win = Ext.create("Ext.window.Window",{
width:400,
height:300,
title:'my window',
buttons:[
{text:'保存',listeners:{
click:function(){
Ext.MessageBox.alert('保存','保存成功');
}
}},
{text:'新窗口'}
]
});
win.show();
})
</script>
</head>
<body>
<div id="toolbar">1111</div>
</body>
</html>
------解决方案--------------------试试用全路径
<link rel="stylesheet" type="text/css" href="ext-3.4.1/resources/css/ext-all.css"/>