我是 ExtJs 的新手。当我运行以下代码时,它会显示消息提示,但提示右上角的关闭按钮不可见,但是当我单击右上角时,框会关闭。
<html>
<head>
<title>Getting Started </title>
<link rel="stylesheet" type="text/css"
href="lib/extjs/resources/css/ext-all.css"/>
<script src="lib/extjs/adapter/ext/ext-base.js"></script>
<script src="lib/extjs/ext-all-debug.js"></script>
<script>
Ext.onReady(function(){
Ext.Msg.prompt('Name', 'Please enter your name:', function(btn, text){
if (btn == 'ok'){
Ext.Msg.alert('Status', 'You Okayed it: '+text);
}else{
Ext.Msg.show({
title: 'Hello',
msg: 'you cancelled it: Mr:'+text,
buttons: Ext.Msg.YESNOCANCEL,
animEl: 'elId'
});
}
});
});
</script>
</head>
<body>
<!--Nothing to Display -->
</body>
</html>