0
我爲我的網站的不同部分使用不同的背景。我需要幫助淡化所有這些背景圖像,但不是其上的文字。 MY post如何淡入淡出不同的背景,但不是文本
<div class="post" style="background-image: url(https://bensmann.no/wp-content/uploads/2017/01/New-Blue-Profile.jpg)">
<div class="product">
<h3>The Monarch</h3>
<p>The Monarch Bike is our original beach cruiser. It's perfect for strolling bike rides down beach promenades and small enough to stash just anywhere.</p>
<a href="/posts/p9chargingonwheels.html" class="btn">Read More</a>
</div>
.post {
background-size: cover;
background-attachment: fixed;
height: 100%;
position: relative;
width: 100%;
z-index: 1;
background-position: center;
opacity: 0.5;
}
非常感謝你的先生....我一直在努力的最後2天做到這一點。對不起,麻煩你了。 – Prashant
@Prashant不用客氣。如果你的問題解決了,一定要接受答案。這是答案旁邊的複選標記。 –
完成先生..!你很棒 – Prashant