feat(Card): 为什么不能单独自定义页头、主体及页脚的背景颜色? #8081
Unanswered
bicijinlian
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
@bicijinlian Thank you for contacting us. We will give feedback later. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@bicijinlian 这种设置颜色问题,均属于样式问题,自己项目中写个全局样式,所有的 card 都会按照你的需求改变(不需要每个组件设置),组件设置属性来做这件事非常不方便。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我想单独定义卡片(Card)组件的页头、主体及页脚的背景颜色,但是没办法做到!如果在模板做背景,又不能整个充满(有自带的间隙)。看源码有相关的类,但不公开。Bootstrap5里面的Card,很容易做到。
可能的方案
1、方便的单独设置页头、主体、页脚的背景(可以把私有类公开为属性)
2、可以在各自的模板中设置背景,但要保持上级标签不留间隙(Margin Padding
Beta Was this translation helpful? Give feedback.
All reactions