嗨,我想設置我的背景圖像透明,其餘的內部不是!我可以這樣做嗎?我與引導工作...我如何設置HTML和CSS透明的背景圖片?
這裏是我的html
<!-- Startseite Section -->
<section id="startseite" class="start-section">
<div class="container">
<h1><span style="opacity: 1.0;">Interne Links</span></h1>
<div class="row">
<div class="col-lg-12">
<section id="Startseite" class="pfblock">
<div class="row">
....//Here are Elements how text and divs
</div>
</section>
</div>
</div>
</div>
</section>
這裏的分裂是CSS拆分:
.start-section {
height: 100%;
padding-top: 150px;
text-align: center;
/*background: #fff;*/
background-image:url('../img/bg.jpg');
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
opacity: 0.7;
}
有關信息:不透明度0.7的作品,但然後我得到所有透明:(
背景圖片不能有混濁。使用支持alpha值的PNG或其他圖像格式。 –