工作不适合我的图像具有以下文件结构:相对路径的css
C:/wamp/myproject/admin/webroot/images
我有一个index.php文件躺在其调用文件的header.inc.php趴在管理文件夹中相同的文件夹。的header.inc.php有以下代码 -
<td align="left" valign="top" class="header-bg">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
的index.php呼吁通过下面的代码css文件(css.css):
<link href="<?php echo (WS_DIR_CSS); ?>/css.css" rel="stylesheet" type="text/css" />
的CSS主要表现在以下位置: C:/wamp/myproject/admin/webroot/css
的CSS文件具有具有下面的代码的类:
.header-bg {
background:url(../images/header_bg.jpg) left top repeat-x;
height:77px;
}
图片header_bg.jpg未在浏览器中显示。帮助任何人?
布局表,如何古怪... – Quentin 2010-05-20 13:19:22
是“图像”自己的目录在webroot(css目录之外)? – RussellUresti 2010-06-02 18:15:03