Blogger Soho主题标题图片未涵盖完整的标题宽度和高度

问题描述 投票:0回答:2

我正在使用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 {&quot;REPLACE&quot;, &quot;BEFORE_DESCRIPTION&quot;}' name='image'/>
      <b:include cond='data:imagePlacement not in {&quot;REPLACE&quot;, &quot;BEFORE_DESCRIPTION&quot;}' name='title'/>

你能帮忙吗?非常感谢!

html css blogger
2个回答
0
投票
.centered-top-container {
    background-image: url(\/\/4.bp.blogspot.com\/-S3EDENzAc5M\/W081co1cPbI\/AAAAAAAABjs\/gDO0eWSzxmUM8oaKfcdmKanYu1iAB3pZACK4BGAYYCw\/w1600\/glitters1.jpg);
}

0
投票

看起来您的背景图像应该在类centered-top-container的项目上。尝试将此添加到您的CSS:

.centered-top-container {
  background: url("http://4.bp.blogspot.com/-S3EDENzAc5M/W081co1cPbI/AAAAAAAABjs/gDO0eWSzxmUM8oaKfcdmKanYu1iAB3pZACK4BGAYYCw/s1600/glitters1.jpg") center cover;
}
© www.soinside.com 2019 - 2024. All rights reserved.