我正在使用 Blazorise Bulma 卡组件,代码如下:
.infobox {
border-radius: 20px;
}
<Card Class="infobox">
<CardImage Source="/assets/images/gallery/9.jpg" Alt="Placeholder image">
</CardImage>
<CardBody>
<CardTitle Size="5">Card title</CardTitle>
<CardText>
Some quick example text to build on the card title and make up the bulk of the card's content.
</CardText>
<Button Color="Color.Primary">Button</Button>
</CardBody>
</Card>
我似乎无法为整张卡片添加边框半径?该类infobox
仅在底部 2 个角处添加圆角边框。为了将边框半径添加到前 2 个角,我需要访问image
元素,但CardImage
只有属性source
和alt
.