我是一个编码新手,我正在尝试编辑一个 tumblr 主题。我一直在网上寻找教程,但我无法解决这个问题。我希望通过添加不透明度来获得透明的内容背景:#background { background:{color:Content Background}; margin: 0 auto; width: 730px; **opacity: 0.5;** }
但我希望文本保持不透明。请问我该怎么做?
这是我所拥有的:
body {
margin: 0 auto;
width: 100%;
height: 100%;
background: {
color: Background
}
url('{image:Background}');
background-repeat:no-repeat;
background-position:center;
background-attachment:fixed;
color: {
color: Primary colour
}
;
font-family: {
font: Body
}
,
Baskerville,
Times,
"Times New Roman",
serif;
font-weight:300;
font-size:13px;
line-height:24px;
}
#background {
background: {
color: Content Background
}
;
margin:0 auto;
width:730px;
opacity:0.5;
}
#background-inner {
margin: 0 auto;
background: {
color: Content Background
}
;
border-left:15px solid;
{
color: Stripe
}
;
border-right:15px solid {
color: Stripe
}
;
width:670px;
}
section#blog {
margin: 0 auto;
width: 670px;
}