vxe-grid 表格颜色
时间: 2023-10-18 08:30:07 浏览: 251
vxe-tablevue表格解决方案 v2.9.15
vxe-grid表格的颜色可以通过修改grid行或列的颜色来实现。通过引用中的代码可以修改grid行或列的颜色,代码中使用了/vxe-body--column/和/th.vxe-header--column/选择器来修改边框的颜色。具体的代码如下所示:
```
/deep/ .vxe-body--column {
border-left: 1px solid #000 !important;
border-bottom: 1px solid #000 !important;
}
/deep/ th.vxe-header--column {
border-left: 1px solid #000 !important;
border-bottom: 2px solid #000 !important;
}
```
同时,还需要在vxe-table标签上添加style属性,设置表格的边框样式,例如`style="border: 1px solid #000;"`。通过这些代码和样式的修改,可以实现对vxe-grid表格的边框颜色进行调整。请注意,这里只提供了修改边框颜色的方法,如果要修改其他部分的颜色,可能需要查看vxe-table的文档或联系vxe-table的开发者了解更多信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [修改grid行或列颜色](https://download.csdn.net/download/fanluyao/2462609)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [插件vxe-table 修改表格边框颜色](https://blog.csdn.net/weixin_45285625/article/details/126017394)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [vxe-table 分页 + 设置行颜色+合并列(vxe-grid)](https://blog.csdn.net/weixin_46166771/article/details/130244870)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文