Css WordPress 85%宽度内容分区背景

Css WordPress 85%宽度内容分区背景,css,wordpress,background,Css,Wordpress,Background,我管理一个WordPress站点,在主内容分区后面应用自定义背景时遇到一些问题。这里有一个指向该站点的链接:。您将看到,main content div设置为85%宽度,每侧都是空白。我已经尝试了所有的方法,但是我不能在空白处添加背景。我已经包含了下面与我们正在查看的div相关的代码。如有任何帮助,将不胜感激。:) 如果有帮助的话,我正在用2013年的主题运行Wordpress 3.6.1。(我已经修改过了。) 谢谢 /** * 3.0 Basic Structure * -----------

我管理一个WordPress站点,在主内容分区后面应用自定义背景时遇到一些问题。这里有一个指向该站点的链接:。您将看到,main content div设置为85%宽度,每侧都是空白。我已经尝试了所有的方法,但是我不能在空白处添加背景。我已经包含了下面与我们正在查看的div相关的代码。如有任何帮助,将不胜感激。:)

如果有帮助的话,我正在用2013年的主题运行Wordpress 3.6.1。(我已经修改过了。)

谢谢

/**
* 3.0 Basic Structure
* ----------------------------------------------------------------------------
*/

body
{
    background: url(http://accelepedia.com/accimages/background02.png) repeat-x top     left;
    width: 100%;
}

.site {
    background: url(http://accelepedia.com/accimages/background02.png) repeat-x top     left;
    border-left: 1px solid #f2f2f2;
    border-right: 1px solid #f2f2f2;
    max-width: 1600px;
    width: 100%;
}

.site-main {
    position: relative;
    width: 85%;
    margin-left:auto;
    margin-right:auto;
    margin-top: 5px;
    border: 5px solid gray;
    background: #000;
    z-index: 1000;
}

.site-main .sidebar-container {
        background-image: url(http://accelepedia.com/accimages/background02.png)
    height: 0;
    position: absolute;
    top: 40px;
    width: 100%;
    z-index: 1;
}

.site-main .sidebar-inner {
    background-image: url(http://accelepedia.com/accimages/background02.png)
    margin: 0 auto;
    max-width: 1040px;
}

背景图像不存在:

<此文件返回一个404

当我设置以下选项时,它会工作:

body {
 background-image: url(https://www.google.com/images/srpr/logo11w.png);
}

尝试更改body的背景色,如:body{background color:green;}您在问题中使用的图像在服务器上仍然不存在,我认为您需要上传它或更改URL