0
divの前に背景の写真がありたい。 divには、ぼんやりした暗い背景と白いテキストが必要です。cssフィルタ:ぼかしガラス効果が働かない、ぼかしがない、内容に影響を及ぼす
しかし、現時点では、ぼやけや暗いテキストのない暗い背景があります。 私を助けてください!
#section0 {
background-color: lightgreen; /*normally the photo*/
}
.blurwrapper {
position: relative;
overflow: hidden;
}
.blur {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: black;
filter: blur(1px);
opacity: 0.2;
transform: scale(1.5);
z-index: 1;
}
h1 {
color: white;
}
.about {
color: white;
background: none;
margin: auto;
margin-top: 20px;
max-width: 800px;
font-size: 15px;
padding: 20px;
text-align: center;
letter-spacing: 2px;
color: white;
border-top: 1px solid white;
z-index: 2;
}
<div class="section active" id="section0">
<div class="blurwrapper">
<h1><span>...</span></h1>
<p class="about">...</p>
<div class="blur"></div>
</div>
</div>
だから私は自分の目標を達成するために何ができますか?私は全体の背景イメージをぼかすことはしません。テキストが入る唯一のパーティーです。 – peacemaker
解決策は、別のdivの背景を複製し、それをコンテナと同じ正確な位置に配置し、それをぼかすことです。それが理にかなってほしい。 –
しかし、ぼやけた部分は、ページ全体ではなく、コンテンツの後ろに置くことができますか? – peacemaker