0
我有我的網站上這張照片,看起來像這樣:不透明的背景,但沒有不透明度文本
現在我不希望文字具有不透明性,我該怎麼做呢?
.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
從transbox刪除不透明 – krishnar
@krishnar然後它刪除箱子的不透明度,我希望箱子的不透明度保留但不包含文本 –