我在我的網站中添加了維護頁面。在那個頁面中,我只放了一張圖片和信息。圖像位於圖像文件夾內。但是當站點處於維護模式時,圖像不會顯示在維護頁面下。如果不在維護模式下,圖像將顯示在該頁面中。我不知道如何解決它。圖像未顯示在維護頁面
在我的網頁,代碼簡單如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Under Maintenance</title>
</head>
<body style="text-align:center;vertical-align:middle;">
<div>
<img src="images/under_maintenance.gif" alt="Under Maintenance" />
<h2>This site is currently</h2>
<h1>UNDER MAINTENANCE</h1>
<h3>We will be back shortly</h3>
</div>
</body>
</html>
你的代碼是完美的可能是問題是在你的圖像或路徑可以ü提供under_maintenance.gif? ... – Kamal 2012-04-09 07:28:55
是的,頁面在維護模式下找不到圖像路徑。通常,其他頁面的路徑是正確的。 – mmdeveloper 2012-04-09 07:35:31
更改此src =「/ images/under_maintenance.gif」幫助嗎? – Marcel 2012-04-09 07:42:24