Cakephp:加载背景图像css

Cakephp:加载背景图像css,php,css,html,cakephp,mod-rewrite,Php,Css,Html,Cakephp,Mod Rewrite,我没有在我的页面上加载背景图像。它在“app/webroot/img/background.png”中 style.css-它的工作原理。。我只是无法加载我的图像 .layout{ width: 100%; height: 230px; position: relative; margin: auto; background-image:('../img/background.png'); } .layout-image{ width: 94

我没有在我的页面上加载背景图像。它在“app/webroot/img/background.png”中

style.css-它的工作原理。。我只是无法加载我的图像

.layout{
    width: 100%;
    height: 230px;  
    position: relative;
    margin: auto;
    background-image:('../img/background.png');
}

.layout-image{
    width: 940px;
    height: 230px;
    position: relative;
    margin: auto;
}
index.php

<div class="layout">
      <div class="layout-image">
          <img src="img/layout.png" alt="">
      </div>
    </div>

webroot/.htacces

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

重新启动发动机
重写cond%{REQUEST_FILENAME}-D
重写cond%{REQUEST_FILENAME}-F
重写规则^(.*)$index.php[QSA,L]

对不起,我犯了个愚蠢的错误,错过了url

background-image: url('../img/background.png');

对不起,我犯了个愚蠢的错误,错过了url

background-image: url('../img/background.png');