工作不適合我的圖像具有以下文件結構:相對路徑的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