Changing background color of Ionic ion-item in CSS

前端 未结 10 1764

I have added the following code style=\"background-color: #C2A5A5 !important. But that has not worked for me. how can I add background color to ion-item?Thank

10条回答
  •  悲&欢浪女
    2020-12-29 23:36

    
      
    The Ionic CSS contains a CSS property: .item .item-content { background-color: transparent !important; }

    its apply on child dom of . We can use can use div class='item-content', but if we won't all the css(.item-content) property would apply to the child elements like if we use

    
       Something   //all css will apply into it 
    
    .item .item-content {
    background-color: transparent !important;
    }
    

    I'm not able to comment that's why I am writing over here.

提交回复
热议问题