就在你需要修改行高的页面上重写它的样式就可以了
第一种查到的方法:
可以在页面中重载x-grid3-row样式:
<style type="text/css">
.x-grid3-row{
height:80px;
}
</style>
这样,对这个页面的所有GRID都有默认的行高了。
第二中查到的方案:
<style type="text/css">
.x-grid3-row td,.x-grid3-summary-row td{
line-height:25px;//控制GRID单元格高度
vertical-align:center;//单元格垂直居中
border-right: 1px solid #eceff6 !important;//控制表格列线
border-top: 1px solid #eceff6 !important;//控制表格行线
}
</style>
第一种查到的方法:
可以在页面中重载x-grid3-row样式:
<style type="text/css">
.x-grid3-row{
height:80px;
}
</style>
这样,对这个页面的所有GRID都有默认的行高了。
第二中查到的方案:
<style type="text/css">
.x-grid3-row td,.x-grid3-summary-row td{
line-height:25px;//控制GRID单元格高度
vertical-align:center;//单元格垂直居中
border-right: 1px solid #eceff6 !important;//控制表格列线
border-top: 1px solid #eceff6 !important;//控制表格行线
}
</style>
本文详细介绍了如何在网页中通过CSS修改x-grid3-row样式来设置默认的行高,以及如何通过控制GRID单元格的高度、垂直居中和边框线来实现更精细的布局效果。
4547

被折叠的 条评论
为什么被折叠?



