0
當我試圖在我的價格表部分懸停(使用之前懸停後),然後背景改變,但顏色不起作用。當前或後懸停然後顏色不起作用
這裏是我的標記
<div class="col-lg-4 col-md-4- col-sm-4 col-xs-12">
<div class="single-price-table price-tbl-active">
<div class="price-header">
<h3>Startup</h3>
</div>
<div class="price-content pptb-30">
<h4> <sub> $ </sub> 279 </h4>
<span>/month</span>
<ul>
<li>20 Users</li>
<li>Unlimited Plan</li>
<li>Custom Design</li>
<li>Lorem Ipsum</li>
<li>Unlimited Time</li>
</ul>
</div>
<div class="price-footer">
<a href="">Get Started Now</a>
</div>
</div>
</div>
這裏是我的樣式表代碼:
.single-price-table{
position:relative;
}
.single-price-table:first-child::before {
background: #283754 none repeat scroll 0 0;
content: "";
height: 10%;
left: 0;
position: absolute;
width: 100%;
opacity: 0;
color:#ffffff;
}
.single-price-table:hover:first-child::before{
opacity: 1;
}
.single-price-table:last-child::after {
background: #283754 none repeat scroll 0 0;
content: "";
height: 10%;
left: 0;
position: absolute;
width: 100%;
opacity: 0;
color:#ffffff;
}
.single-price-table:hover:last-child::after{
opacity: 1;
}
。單價格表:懸停:第一個孩子之前:: {不工作} – Mahbub