【发布时间】:2015-10-24 16:49:52
【问题描述】:
我添加了以下代码style="background-color: #C2A5A5 !important。但这对我不起作用。如何为 ion-item 添加背景颜色?提前致谢。
<ion-item class="item-remove-animate item-avatar item-icon-right" style="background-color: #C2A5A5 !important" ng-repeat="detail in details" type="item-text-wrap" ng-controller="ChatsCtrl" ng-click="openShareModel(detail)">
<img ng-src="{{profilepic.profileimageurl}}">
<h2>{{detail.date | date :'fullDate'}}</h2>
<h2>{{detail.title}}</h2>
<p>{{detail.description}}</p>
<i class="icon ion-chevron-right icon-accessory"></i>
<ion-option-button class="button-assertive" ng-controller="ChatsCtrl" ng-click="remove(detail.id)">
Delete
</ion-option-button>
</ion-item>
【问题讨论】:
-
你能在这里创建演示吗? play.ionic.io
-
在上面的链接中我删除了“
删除 ion-option-button>" part.after that background color is set.so我如何解决这个问题。我也想要那个删除按钮。 -
这里我加了修改一个--play.ionic.io/app/d3e25c5faa36
-
你可以更改css代码
.item .item-content { background-color: transparent !important; }