在IE7下Ext的button高度比ie8和ie6的button高度高出了6像素(指定高和宽度的情况下)代码如下:new Ext.Panel({
width:500,
height:500,
renderTo:'menuDiv',
title:'xxx',
buttons:[{
text:'xxx',
width:50,
height:50
}]
});页面使用的是如下的标准:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
width:500,
height:500,
renderTo:'menuDiv',
title:'xxx',
buttons:[{
text:'xxx',
width:50,
height:50
}]
});页面使用的是如下的标准:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
.ext-strict .ext-ie6 .x-btn-mc, .ext-strict .ext-ie7 .x-btn-mc {
height: 100%;
}
True表示为使用height:'auto',false表示为使用固定...
True表示为使用height:'auto',false表示为使用固定高度(缺省为false)。注意:尽管许多组件都会继承该配置选项,但是不是全部的'auto' height都有效。autoHeight:true的设定表示会依照元素内容自适应大小,Ext就不会过问高度的问题。True to use height:'auto', false to use fixed height (defaults to false). Note: Although many components inherit this config option, not all will function as expected with a height of 'auto'. Setting autoHeight:true means that the browser will manage height based on the element's contents, and that Ext will not manage it at all.
height: 50