用的是Ext3,在FF和Chrome中都是正常的,,在IE8中,可以显示出来,但是点击south实现折叠时,如果点击了title部分就会报错,如果点击那个小图标,,前几次点击时没问题的,多点击几次,就报错:对象不支持此属性或方法 ext-all.js 行7部分代码如下:
<body>
<span/>
<div id="north" class="">
</div>
<div id="leftTree" class="">
</div>
<div id="myMap" class="showMap">
</div>
<div id="south" class="x-hide-display">
<p>111south - generally for informational stuff, also could be for status bar</p>
</div>
</body>/////////////////////////////////////////////////////////////////// js代码
Ext.onReady(function() {
//Ext.create('Ext.Viewport', {
//var win = new Ext.Window({
var viewport = new Ext.Viewport({
layout: {
type: 'border',
padding: 5
},
items: [{
region: 'north',
/////此处略去一些代码
{ ///////////////////////////////////////////////south
region: 'south',
contentEl: 'south',
split: true,
height: 100,
minSize: 100,
maxSize: 200,
collapsible: true,
//collapsed: true,
//titleCollapse:true,
title: 'South',
margins: '0 0 0 0'
/* region: 'south',
//autoScroll:false,
//frame:false,
collapsible: true,
collapsed: true,
//titleCollapse:true,
split: true,
height: 200,
title: '高级功能' */
/* layout: {
type: 'border',
padding: 5
},
items: [{
title: '历史轨迹查询',
region: 'center',
html: 'South Central'
}, {
title: '运动趋势',
region: 'east',
//flex: 1,
html: 'South Eastern',
split: true
//collapsible: true,
//collapseMode: 'mini'
}, {
title: '智能分析',
region: 'west',
//flex: 1,
html: 'South Western<br>I collapse to nothing',
split: true
//collapsible: true,
//collapseMode: 'mini'
}] */
}
]
});
<body>
<span/>
<div id="north" class="">
</div>
<div id="leftTree" class="">
</div>
<div id="myMap" class="showMap">
</div>
<div id="south" class="x-hide-display">
<p>111south - generally for informational stuff, also could be for status bar</p>
</div>
</body>/////////////////////////////////////////////////////////////////// js代码
Ext.onReady(function() {
//Ext.create('Ext.Viewport', {
//var win = new Ext.Window({
var viewport = new Ext.Viewport({
layout: {
type: 'border',
padding: 5
},
items: [{
region: 'north',
/////此处略去一些代码
{ ///////////////////////////////////////////////south
region: 'south',
contentEl: 'south',
split: true,
height: 100,
minSize: 100,
maxSize: 200,
collapsible: true,
//collapsed: true,
//titleCollapse:true,
title: 'South',
margins: '0 0 0 0'
/* region: 'south',
//autoScroll:false,
//frame:false,
collapsible: true,
collapsed: true,
//titleCollapse:true,
split: true,
height: 200,
title: '高级功能' */
/* layout: {
type: 'border',
padding: 5
},
items: [{
title: '历史轨迹查询',
region: 'center',
html: 'South Central'
}, {
title: '运动趋势',
region: 'east',
//flex: 1,
html: 'South Eastern',
split: true
//collapsible: true,
//collapseMode: 'mini'
}, {
title: '智能分析',
region: 'west',
//flex: 1,
html: 'South Western<br>I collapse to nothing',
split: true
//collapsible: true,
//collapseMode: 'mini'
}] */
}
]
});
换成以下方式也不行:
new Ext.Panel({
region : "south",// 布局为south
margins: '5 5 5 5',
collapsible: true,
title : "south",
height : 150,
frame : true
})
这没法看,还有就是贴上来的代码来点格式,这太费劲了
(乱七八糟的注释)