在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">
解决方案 »
- js动态添加的行中td的样式不起作用
- 关于innerHTML的新问题(继续昨天的)
- 通过js判断浏览器的语言选择不同的页面
- 两个不同页面在 Tab 间切换
- javascript 操作 div <h3>标记
- 父窗口弹出一个子窗口,子窗口操作完后自动关闭,同时要求父窗口自动刷新.注意:是不同域之间的,怎么实现啊
- 如何为一个输入域(area)设置默认值
- 关于在bgsound中onreadystatechange的使用
- 通过JS限制某个IP段访问网页
- 输入框自动填充后为什么会触发不了focus()和blur()事件呢?求大神解答
- 排序一下
- JQuery(Javascript)动态隐藏table的多个列怎么实现?
.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