feat(Card): 为什么不能单独自定义页头、主体及页脚的背景颜色? #8081
Answered
by
ArgoZhang
bicijinlian
asked this question in
Q&A
|
我想单独定义卡片(Card)组件的页头、主体及页脚的背景颜色,但是没办法做到!如果在模板做背景,又不能整个充满(有自带的间隙)。看源码有相关的类,但不公开。Bootstrap5里面的Card,很容易做到。
可能的方案1、方便的单独设置页头、主体、页脚的背景(可以把私有类公开为属性) |
Answered by
ArgoZhang
Jul 8, 2026
Replies: 3 comments 1 reply
|
@bicijinlian Thank you for contacting us. We will give feedback later. |
0 replies
|
@bicijinlian 这种设置颜色问题,均属于样式问题,自己项目中写个全局样式,所有的 card 都会按照你的需求改变(不需要每个组件设置),组件设置属性来做这件事非常不方便。 |
1 reply
Answer selected by
ArgoZhang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


@bicijinlian link #8197