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然后它删除箱子的不透明度,我希望箱子的不透明度保留但不包含文本 –