我正在使用Blogger Soho主题,在将背景图片放在标题标题和订阅链接后面时遇到问题。图像(名为glitter1.jpg)将无法覆盖页眉带的整个宽度和高度;它只环绕标题标题单词。
我搜索了这个论坛,但无法获得先前的解决方案。 Blogger产品论坛上的帖子被忽略。
博客网址:https://retireby50sg.blogspot.com
标题图片周围的代码段:
<div class='blog-name'>
<b:section id='header' name='Header' showaddelement='false'>
<b:widget id='Header1' locked='true' title='Retire by 50 in Singapore (Header)' type='Header' visible='true'>
<b:widget-settings>
<b:widget-setting name='displayUrl'>http://4.bp.blogspot.com/-S3EDENzAc5M/W081co1cPbI/AAAAAAAABjs/gDO0eWSzxmUM8oaKfcdmKanYu1iAB3pZACK4BGAYYCw/s1600/glitters1.jpg</b:widget-setting>
<b:widget-setting name='displayHeight'>300</b:widget-setting>
<b:widget-setting name='sectionWidth'>705</b:widget-setting>
<b:widget-setting name='useImage'>true</b:widget-setting>
<b:widget-setting name='shrinkToFit'>false</b:widget-setting>
<b:widget-setting name='imagePlacement'>BEHIND</b:widget-setting>
<b:widget-setting name='displayWidth'>1140</b:widget-setting>
</b:widget-settings>
<b:includable id='main' var='this'>
<div class='header-widget'>
<b:include cond='data:imagePlacement in {"REPLACE", "BEFORE_DESCRIPTION"}' name='image'/>
<b:include cond='data:imagePlacement not in {"REPLACE", "BEFORE_DESCRIPTION"}' name='title'/>
您能帮忙吗?非常感谢!
答案 0 :(得分:0)
看起来您的背景图片应该在类别为centered-top-container
的项目上。尝试将其添加到您的CSS中:
.centered-top-container {
background: url("http://4.bp.blogspot.com/-S3EDENzAc5M/W081co1cPbI/AAAAAAAABjs/gDO0eWSzxmUM8oaKfcdmKanYu1iAB3pZACK4BGAYYCw/s1600/glitters1.jpg") center cover;
}
答案 1 :(得分:0)
Project A