【问题标题】:Setting Background Image in Joomla在 Joomla 中设置背景图像
【发布时间】:2013-03-04 03:37:57
【问题描述】:

我试图在标题位置的 joomla 模板中设置背景图像,我修改了文件 template.css,它显示了背景图像但不正确,我只能看到左侧和右侧的 a 部分新的背景图像,其余部分被隐藏(白色背景覆盖),我不知道我做错了什么:

这是模板网址链接: http://vitadorotest.hhc-netzwerk.de/

这是我的 CSS 编码部分:

body.font-size-is-default {
    font-size: 13px;
    line-height:19px;
    color:#8f8f8f;
    font-family:Arial, Helvetica, sans-serif;
    background:url(../images/background.jpg) 50% 0 no-repeat #fff !important;
    height: 95px;
    margin: 0 auto;
    width: 1087px;
}

【问题讨论】:

    标签: css image templates joomla background


    【解决方案1】:

    这是真正的问题,, white_tail.gif 是一个 while 图像,它用 while 背景覆盖定义的 id。

    #rt-top, 
    #rt-header, 
    #rt-menu, 
    #rt-showcase, 
    #rt-feature, 
    #rt-utility, 
    #rt-breadcrumbs,   
    #rt-maintop, 
    #rt-main, 
    #rt-mainbottom{
       background:url(../images/white_tail.gif) 50% 0 repeat-y;
    }
    

    就像评论一样

    /*background:url(../images/white_tail.gif) 50% 0 repeat-y;*/
    看看结果。

    【讨论】:

      【解决方案2】:

      我在http://colorta.com的文章主页上使用添加的标签添加了一些背景及其工作。

      <div style="background-image: url(images/banners/myimage.jpg); "> 
      

      【讨论】:

        猜你喜欢
        • 2019-08-11
        • 2010-11-07
        • 2012-08-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-05-01
        相关资源
        最近更新 更多