のための無不透明度:背景に不透明度が、私はこのようになります私のウェブサイト上でこの写真を持っているテキスト
今、私は私はそれをどのように行うか、テキストは不透明度を持つようにしたくないですか?
.hero_content h1 {
color: #011f4b;
font-weight: 700;
font-size: 45px;
}
.hero_content h2 {
color: #000;
font-weight: 700;
font-size: 20px;
margin-top: 0;
width: 50%;
line-height: 1px;
}
div.transbox {
padding-bottom: 20px;
padding-top: 1px;
padding-left: 100px;
background-color: #ffffff;
border: 0px solid black;
opacity: 0.3;
margin-top: 170px;
margin-left: -110px;
width: 1360px;
}
<div class="transbox">
<h1>TeamSpan Global Solutions</h1>
<h2>Your partner in building satellite workforce teams</h2>
</div>
のような擬似クラスを使用してください。 'rg背景色は「ba」です。 – Xufox
トランスボックスから不透明度を削除する – krishnar
@krishnarそれから、ボックスの不透明度が削除されます。ボックスの不透明度を維持しますが、テキストは残さないようにします。 –