在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">

解决方案 »

  1.   

    自己再顶一下,查看Ext的css发现如下一段:/* Fixes an issue with the button height */
    .ext-strict .ext-ie6 .x-btn-mc, .ext-strict .ext-ie7 .x-btn-mc {
    height: 100%;
    }
      

  2.   

    自己再顶一下,如果删除ext-all.css中的那句话,按钮在IE7中会完全不正常,虽然大小好了,但是按钮效果全部完蛋
      

  3.   

    在描述的详细点,如果我不给button设置width和height的话,button在ie8和ie7下的效果都是一样的
      

  4.   

    你试试:autoHeight: 'true'autoHeight : Boolean 
    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. 
      

  5.   

    autoHeight: 'true',
    height: 50
      

  6.   

    问题还是没有解决,只能使用变通的办法,用scale+iconCls来做。但还是谢谢各位