通過添加樣式屬性,我只能更改卡組件正文部分的顏色。我怎樣才能改變標題部分?Antd - 無論如何改變卡片標題的背景顏色?
<Card title='Card title' bordered loading={this.onLoading()}
style={{ backgroundColor: '#aaaaaa' }}>
<Row type='flex' justify='center'>
<h1>Card content</h1>
</Row>
</Card>
感謝您的快速響應。它仍然不適合我。我編輯了這篇文章並添加了一個例子。 –
完全相同的代碼,它爲我工作..你可以檢查標題的風格? – CodinCat
順便說一下,你是否使用'antd'來產生結果,即'從'antd'導入{Card} –