我有一個矩形框,點擊時可以調用模態。框內是標籤和展開圖標。控制使用父div類的子div div
<div class="clickable-box" ng-click="openRetailerGraphDetails()" data-toggle="modal" data-target="#g-retailer-purchases-graph">
<div class="dashboardBox clearfix">
<div class="pull-left dashboardBoxLabel purchases">
<h4 class="dashboardBoxLabeltext">
{{RetailerPurchases}} RETAILER PURCHASES
</h4>
<span class="dashboardBoxLabel2">
For the current month
</span>
</div>
<img class="pull-right expand-icon" src="themes/img/dashboard/expand.svg" />
</div>
</div>
我希望在整個點擊框懸停img標籤內展開圖標從0的不透明度改爲0.7。我怎樣才能實現它?
編輯:Here`s的CSS
.clickable-box {
cursor: pointer;
}
#dashboard .expand-icon {
width: 20px;
margin-top: 13px;
margin-right: -10px;
margin-bottom: -25px;
opacity: 0;
}
不是爲我工作。我在這個問題中增加了更多細節,可以幫助你改進這個答案。 – JkAlombro
檢查更新 – Dekel
很酷,它現在有效。謝謝:) – JkAlombro