setStyle(gridName,data) 设置表格样式(具体可以参考css文档)
pkgrid.setStyle('grid', {
headerBorder: {
border: 'border',
style: 'solid',
width: '1px',
color: 'red'
},
bodyBorder: {
border: 'border-bottom',
style: 'solid',
width: '1px',
color: 'red'
},
trHoverEnter: {
bgColor: 'red',
color: 'blue'
},
trHoverLeave: {
bgColor: 'transparent',
color: 'cyan'
},
headerText:{
align:'center',
color:'#fff'
},
bodyAlign:'center'
})
width:边框的宽度
width:边框的宽度