我有一個類型爲.bmp的圖像,我希望將它用作aspx頁面上的背景圖像。.aspx頁面上的背景圖像
下面是我在.css文件代碼:
/* Background home image
-----------------------------------------------------------*/
.page
{
width: 90%;
margin-left: auto;
margin-right: auto;
}
#HomePage
{
background-image: url('C:\Users\MyName\Documents\Visual Studio 2010\Projects\IP_Project2\IP_Project2\images\WeMeet - Landing Page.bmp');
}
////////////////////////////// /////////////////////////////////////////////////
的.aspx代碼
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site1.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h2></h2>
<div id="HomePage">
<p>Hello</p>
</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
被在網頁上不顯示圖像...可能是什麼問題?
我試過這個和../images/WeMeet - 着陸Page.bmp以及...兩個都沒有工作......另外我目前正在使用Visual Studio 2010,所以它不能是任何IIS相關的問題以及 – 2011-04-24 03:19:20