//没有固定的hover颜色修改
.ant-table-tbody{
tr:hover:not(.ant-table-expanded-row) > td,.ant-table-row-hover,.ant-table-row-hover > td {
background-color: @background-color-light;
}
}
//有固定向左向右的hover颜色修改
.ant-table-fixed{
.ant-table-row-hover, .ant-table-row-hover>td{
background-color: @background-color-light!important;
}
}
antd-vue table里hover行背景色修改
最新推荐文章于 2024-06-05 16:38:12 发布
这篇博客介绍了如何使用 CSS 修改表格的悬停效果,包括无固定背景颜色的悬停和有固定左右方向的悬停颜色。通过设置 `.ant-table-tbody` 和 `.ant-table-fixed` 类的选择器,可以实现不同情况下的背景颜色变化,增强了表格的视觉体验。
部署运行你感兴趣的模型镜像
您可能感兴趣的与本文相关的镜像
Stable-Diffusion-3.5
图片生成
Stable-Diffusion
Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

1977

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



