[英]Make Header Transparent on Twentyeleven theme
我一直在寻找答案,但找不到任何可以解决我的问题的东西。 我正在为二十一十一使用一个儿童主题,并且试图使标题透明,以便它吸收页面背景。 我已经在子主题css中执行了以下操作。
/* =Header
----------------------------------------------- */
#branding {
border-top: 0px;
padding-bottom: 10px;
position: relative;
z-index: 9999;
background: transparent !important;
}
#site-title {
margin: 0 auto;
padding: 5.9em 0 0 1.30em;
font-family: 'Abel', sans-serif;
text-align: center;
}
#site-title a {
color: #000066;
font-family: 'Abel', sans-serif;
letter-spacing: -5px;
font-size: 80px;
font-weight: normal;
line-height: 25px;
text-decoration: none;
}
#site-title a:hover,
#site-title a:focus,
#site-title a:active {
color: #000066;
font-family: 'Abel', sans-serif;
}
#site-description {
color: #000066;
font-size: 25px;
font-family: 'Abel', sans-serif;
margin: 0 0px 1.35625em .8em;
text-align: center;
}
#branding img {
height: auto;
display: block;
width: 960px;
}
如果您看到任何我可以添加,更改或删除的内容。 或知道在CSS的其他部分中要执行的其他技巧,请让我知道。
谢谢!
它后面有div使其具有背景,如果您给我发送链接,我会确切告诉您该怎么做,但我想这是罪魁祸首之一。
#page {
background: #fff;
}
使那个
background:transparent;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.