English 中文(简体)
图像在维护页下没有显示
原标题:images is not showing up in under maintenance page

我在我的网站上增加了一个维护网页。 在那一页,我只带了一个形象和讯息。 图像在图像夹中。 但是,当网站保持维护模式时,图像并没有在维护网页上显示。 如果不采用维护模式,该页面就显示图像。 我不知道如何解决这一问题。

在我的网页上,该守则简单如下:

<!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>
最佳回答

将网站引入维护模式,可能会阻碍人们了解一切情况,包括你试图展示的形象。 无论是白色的图像(你怎么办)还是把图像放在外部形象东道方,如imgur

问题回答

Thank you both for answering my question. :) Finally, I can solve it. I embed the image as base64 format like

<img src="data:image/gif;base64,R0lGODlhIQE6AfcAA..." alt="Under Maintenance" />.

在我看来,没有为我提供64个基点,而是好点。

我使用MVC和维修模式,App_Offline.htm。 我有第64号基地,作为 im。

Firefox, Chrome, Opera show image. IE8 not.





相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签