Bulma card content change color

问题: I run into a little problem. I want to change the background of a card content. But nothing worked. I have this code part: <div class="card" style="width: 75%!importan...

问题:

I run into a little problem. I want to change the background of a card content. But nothing worked. I have this code part:

<div class="card" style="width: 75%!important;">
....
  <div class="card-content">
    <div class="content">
....
    </div>
  </div>
</div>

css

.card .content {
  background: rgba(255, 255, 255, 0.5)!important;
}

回答1:

If you are using sass with your bulma project you can change variables $card-color and $card-background-color. https://bulma.io/documentation/components/card/

or

You can add a new style to the card class and set the background-color property.

.card {
    background-color: green;
{
  • 发表于 2019-01-15 23:38
  • 阅读 ( 318 )
  • 分类:网络文章

条评论

请先 登录 后评论
不写代码的码农
小编

篇文章

作家榜 »

  1. 小编 文章
返回顶部
部分文章转自于网络,若有侵权请联系我们删除