English 中文(简体)
CakePHP没有显示我从安全局档案中的背景评价
原标题:CakePHP, not showing my background-image from CSS file

Cakephp正在给我带来一些问题,正如我在下文所述(我通过当地东道机构尝试过任何一批ur,把它放在我们的手稿中,并从该档案中提一提,从当地东道方(这是当地测试泡沫机器,而不是第三手服务器),等等,但只是没有显示。 我使用的是一种习俗,它超越了缺省布局,而且就我所知,它没有提及任何类型的背景形象。

body {
    background-image: url( http://localhost/site1/app/webroot/img/bg1.jpg );
    font-family: lucida grande ,verdana,helvetica,arial,sans-serif;
    font-size:90%;

}

我测试了这种工作用普通的超文本文件进行罚款,我希望有人会想到什么是给我这一问题造成的。 感谢

EDIT:我已经测试过,我可以从同一个卷宗中(作为其背景)展示同样的形象,Cakephp的故事超越了身体背景,但我可以说出什么。

最佳回答

您在<><><><>背井><>>>><>>/>>上的发言是错误的:

ackground-image: url( /root/Desktop/bg1.jpg );

如果在您的实际法典中情况并非如此,则确保你指明正确的道路,尝试在<代码>/root/之前添加一个标识。

background-image: url( ./root/Desktop/bg1.jpg );
问题回答

网址图

网址:webroot/cs


• 印刷有关CSS风格参考图像的相对途径:

background: url( ../img/imagename.png );




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签