使用bodyStyle的时候需要在数字后加px
bodyStyle: 'padding:20px 0px 0px 30px'
自定义tab的样式
可以在page中加入css定义,按照就近原则浏览器会先使用page中的css
<style type="text/css">
/*去掉tab的 title的背景*/
.x-tab-bar {
position: relative;
background-color: transparent;
background-image: none !important;
}
.x-tab-bar-body {
border-style: none !important;
position: relative;
border-color: transparent;
z-index: 2;
zoom: 1;
}
</style>
extjs4.1 在FF浏览器中tab title中显示中文当字体大小设12px的时候字体下面会有部分无法显示
这是需要设置
.x-tab button {
background: none;
border: 0;
padding: 0;
margin: 0;
-webkit-appearance: none;
-moz-appearance:none;
font-size: 12px;
font-weight: normal;
font-family:宋体,tahoma, arial, verdana, sans-serif; //加入宋体
color: #416da3;
outline: 0 none;
overflow-x: visible; }
Ext.data.Model 中的modified属性放的是更改的store的内容,field的数据是最后一次commit后的数据
在编辑完Grid后要记得使用
grid.getPlugin(pluginid).completeEdit();
不然最后一个单元格的数据不一定能被正确读取